in reply to Re: Re: Extract lines and output...
in thread Extract lines and output...
#!/usr/bin/perl -w while(<*>) { next if /^$0$/; open I, $_ or die "$_: $!"; open O,">$_.bak" or die "$_.bak: $!"; print O $_, "\n", (<I>)[0..3]; close I, close O; }
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Extract lines and output...
by broquaint (Abbot) on Oct 10, 2001 at 13:42 UTC | |
|
Re: Re: Re: Re: Extract lines and output...
by belden (Friar) on Oct 10, 2001 at 08:58 UTC | |
by tachyon (Chancellor) on Oct 10, 2001 at 11:10 UTC |