On 28 June 2011 16:26, Jim Cheetham <[email protected]> wrote: > sed and awk can do pretty much anything. The syntax is ugly as hell, > and not readable for updates later, and that's why we have better > languages now.
I should also point out on some Unixen, 'sed -r' may not exist or may not work the way you expect it to. However, that perl syntax /should/ work on everything, including windows *( you might have to change the quotes because windows cmd.exe is broken, but it will still do the right thing ). And like Sed and Awk, you can almost guarantee that Perl is installed on any Unix box you might encounter. ( These aren't points that make it 'win', just one of those trade-off arguments that make it favourable in the eyes of some for a given purpose ). -- Kent perl -e "print substr( \"edrgmaM SPA NOcomil.ic\\@tfrken\", \$_ * 3, 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" http://kent-fredric.fox.geek.nz _______________________________________________ Linux-users mailing list [email protected] http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
