A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Combine multiple lines in multiple files into a single spreadsheet row

for k in $(ls *.xml); do echo "$(perl -e'print "$ARGV[0]\t"' $k)""$(head -14 $k | egrep 'h:shortdesc|dc:title' | perl -lne'($t)=$_=~m{([^<]+)} if ! $t; ($d)=$_=~m{([^<]+)<} if ! $d;END{print "$d\t$t"}')"; done

Toggle visibility of non-printable characters in Mac Word

Preferences | View | Nonprinting characters -> tick boxes