tAdded title formatting options - monochromatic - monochromatic blog: http://blog.z3bra.org
(HTM) git clone git://z3bra.org/monochromatic
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 8fa7709fd45c0d6b087d92155a2deab61e122522
(DIR) parent 9060fa6c39fd8b0f1bf126859f10d5b25afcc0c6
(HTM) Author: z3bra <willy@mailoo.org>
Date: Wed, 24 Sep 2014 01:44:24 +0200
Added title formatting options
Diffstat:
M post.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/post.sh b/post.sh
t@@ -4,7 +4,7 @@
read -p "Post title: " title
# use post title to name the file
-file=`echo ${title}| sed "s/\s\+/-/g;s/./\L&/g;s/[,.!;\"']//g"`.txt
+file=`echo ${title}| sed "s/\s\+/-/g;s/./\L&/g;s/[,.?!;\"']//g"`.txt
test -z "$file" && exit 1