-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeproject.sh
More file actions
54 lines (37 loc) · 998 Bytes
/
codeproject.sh
File metadata and controls
54 lines (37 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# TODO: Parse title of blog
declare -A article
blogname="06102022-abakasam-blog"
fileblog="/home/cabox/workspace/abakasam/blog/"$blogname
while read line
do
IFS=","; read -ra part <<< "$line"
article["Date"]=${part[0]}
article["Title"]=${part[1]}
article["Description"]=${part[2]}
article["Abstract"]=${part[3]}
article["Author"]=${part[4]}
article["Email"]=${part[5]}
article["Language"]=${part[6]}
article["Platform"]=${part[7]}
article["Technology"]=${part[8]}
article["Topic"]=${part[9]}
article["Section"]=${part[10]}
article["SubSection"]=${part[11]}
article["License"]=${part[12]}
break
done < $fileblog
article["Body"]=$(cat $fileblog)
$blogurl=""
feeditem="feed.item({
title: ${article["Title"]},
description: ${article["Description"]},
url: $blogurl$blogname,
author: ${article["Author"]},
date: ${article["Date"]},
)"
#>> codeproject.blogs
# TODO: Create .rss feed item
filefeed=""
fileitems=""
feed=$(cat $filefeed)
items=$(cat $fileitems)