Created
May 24, 2012 01:50
-
-
Save danchoi/2778992 to your computer and use it in GitHub Desktop.
The Twelve-Factor App philosophy in one plain text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloads the Twelve-Factor App guide from http://www.12factor.net/ and | |
# converts it to plain text, convenient for printing | |
base=www.12factor.net | |
out=12factor.txt | |
rm $out | |
wget -r http://$base | |
grep 'href.*h2' $base/index.html | | |
sed "s/.*href='\([^']*\)'>.*/\1/" | | |
while read chapter; do | |
echo | |
echo | |
elinks -dump $base/$(echo $chapter) | |
done >> $out | |
rm -rf $base | |
echo "File created: $out" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be $base/$chapter