Script handles padded integers for file namings
This commit is contained in:
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
# build the blog files
|
# build the blog files
|
||||||
cd ../blog
|
cd ../blog
|
||||||
CONTENTNUM=$(ls content* | wc -l )
|
CONTENTNUM=$(ls content-* | wc -l )
|
||||||
for i in {0..$CONTENTNUM}
|
for i in {0..$CONTENTNUM}
|
||||||
do
|
do
|
||||||
cat filehead "content$i" "quote$i" > blog-00$i
|
cat filehead "content-$(printf \"%03d\" $i)" "quote-$(printf \"%03d\" $i)" > blog-00$i
|
||||||
done
|
done
|
||||||
rm filehead content* quote* .blog.*
|
rm filehead content* quote* .blog.*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user