главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
authorMatt Traudt <mt.traudt@gmail.com>2014-02-12 20:45:39 -0600
committerMatt Traudt <mt.traudt@gmail.com>2014-02-12 20:45:39 -0600
commitb2b87e584c9815e194d46bb28d60d80dd4eeee06 (patch)
tree351d3442d6ff86119770bd3a4edc3ad249cb4e59 /bb.sh
parentc1a400a368009e125ce51e4711144e0ac432f5dd (diff)
Added a comment
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index 5b04762..c165e9e 100755
--- a/bb.sh
+++ b/bb.sh
@@ -399,8 +399,9 @@ parse_file() {
title=""
while read line; do
if [[ "$title" == "" ]]; then
- title=$(echo "$line" | sed 's/<\/*p>//g')
+ # set title and
# remove extra <p> and </p> added by markdown
+ title=$(echo "$line" | sed 's/<\/*p>//g')
filename="$(echo $title | tr [:upper:] [:lower:])"
filename="$(echo $filename | sed 's/\ /-/g')"
filename="$(echo $filename | tr -dc '[:alnum:]-')" # html likes alphanumeric