Migrating existing Joomla! site for Canadian musician, Art Bergmann, to Jekyll rendered static site.
Bulk rename filenames in directory
qmv -A --format=destination-only
http://www.nongnu.org/renameutils/
Add numbers to start of each line of text
%!nl -nrz -w2 -s'-'
Remove Joomla! importer front matter from lyrics pages
sed -i '4,8d' */*/lyrics/*.markdown
Change lyric pages' layouts to "page"
sed -i 's/layout: post/layout: page/g' */*/lyrics/*.markdown
Remove all remaining front matter and style title for lyrics
sed -i '1,2d;s/title: /##/;4d' */*/lyrics/*.markdown
Include lyrics in album page
ls -c lyrics/*.markdown | sort | awk '{print "{% include_relative " $0 " %}"}' >> index.markdown
Break monolithic one line articles on <br /> tag
:%s/<br \/>/^M/g
Note: The ^M is generated by CTRL-V + RETURN
Strip HTML tags
:%s/<[^>]*>//g
Trailing two spaces for markdown <br />
:%s/$/ /g
Remove non-breaking spaces that occupy a line
%s/^ $//g
Remove smart double-quotes
:%s/”\|“/\"/g
Remove smart single-quotes
:%s/’\|‘/\'/g
###Tips
Change </div><div> combinations to <br />
:%s/<\/div><div>/<br \/>/g
Break monolithic one line articles on <br /> tag
:%s/<br \/>/^M/g
Strip HTML tags
:%s/<[^>]*>//g
sed -i '2d; 3s/./\L&/g; 4,8d; 9 i\article_author: \narticle_publication: ' */*/_posts/*.markdown