[plug] A sed question?

Leon Brooks leon-plug at cyberknights.com.au
Wed Oct 21 15:47:26 WST 2009


On Wed, 21 Oct 2009 03:32:11 pm Arie Hol wrote:
> I want/need to append one line
> of the data file to the end of the previous line.

> Is this possible using sed

if you can do something like this with a vaguely bash-
like shell...

    echo $(sed SedCommandsHere) >> outfile

...the entire output of sed will be appended as a single,
space-separated line to outfile.

What this means is that if you can get SedCommandsHere to
spit out just the two lines you require, in the correct
order, the result will be a single line.

Cheers; Leon



More information about the plug mailing list