The hell you sed

somian on 2007-03-14T05:33:18

Just to be perverse, I'll post my little cli sed program ... written to snag a couple much-liked fonts from the FONTS directory of one of my MS Windows machines, so I can use it on GNU/Linux.
ls -1 \ /cdv/c/winnt/fonts/{Min,Myr}*.[Tt][Tt][Ff] | sed -n '{s^\(.\+\)\.ttf$^\1^;h;s^ ^_^g;s:.\+/\([^/]\+\):./\1.ttf:;x;s:\n: :g;s: :\\ :g;s:$:.ttf:;G;s:\n: :g;p;s:.*::;h}' | xargs -L 1 install -vm 0664

Isn't that beautiful? ;-P