It replaces ampersands, tabs, less/greater braces and prepares source code for posting into blog.
If you prefer shell scripts, you may use this:
sed -e 's/\x26/\&/g;s/\x3c/\</g;s/\x3e/\>/g' sourcefile.txt | expand -t 4 >sourcefile.blog
See this project on GitHub
No comments:
Post a Comment