in reply to Re: how to delete part of the line?
in thread how to delete part of the line?
Than maybe two simple one-liners?
orperl -ple's/^line\d+=//' infile | perl -p0e 's!\n!/!g' > outfile
if end of the output has any meaning. Hmm, seems there is no beauty, too.perl -ple's/^line\d+=//' infile | perl -p0e 's!\s+$!! ; s!\n!/!g' > ou +tfile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to delete part of the line?
by ikegami (Patriarch) on May 22, 2009 at 15:06 UTC |