in reply to Re (tilly) 1: Yet another one-liner
in thread Yet another one-liner
PS Clarification on my update above. I don't remember giving any hints on how to do this as a one-liner.perl -pi.bak -e 'BEGIN{$/=$u}s//\n/' foo*
UPDATE
Obvious improvement. Dropped the $ off of the u.
UPDATE 2
Um, without it you can add a return to the end of the file as well. The $ is back.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 2: Yet another one-liner
by chipmunk (Parson) on Jan 12, 2001 at 02:10 UTC | |
|
Re: Re (tilly) 2: Yet another one-liner
by danger (Priest) on Jan 12, 2001 at 02:56 UTC | |
by tilly (Archbishop) on Jan 12, 2001 at 06:43 UTC |