Re: Search --> Replace on Unix

2001-09-12 Thread lc-brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John W. Krahn) wrote: > brian d foy wrote: > > In article <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] (David Gilden) wrote: > > > perl -e 'foreach $file (glob("*")) {grep '../forum_idx.pl' >'../cgi-bin/forum_idx.pl');}' > > perl -pi.old -

Re: sort in a file using Perl

2001-09-06 Thread +brian_d_foy
In article <005e01c1370a$1a1fd920$f95314ac@04778-9>, [EMAIL PROTECTED] (McGregory Pinto) wrote: > How i do a sort, like "sort -k3,5 -d" "" command, in a file using Perl. you can use a Schwartzian Transform with the sort key being the part of the string that you extract with substr: my @sorted