http://qs1969.pair.com?node_id=515345


in reply to What one-liners do people actually use?

Here is one i used today:

perl -le'for (<*.mas>) {$o=$_;s/mas$/html/; rename $o,$_ }'
I needed to change some .mas extensions to .html extensions.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)