howto join lines
Patrick O'Callaghan
pocallaghan at gmail.com
Thu Oct 2 04:01:57 UTC 2008
On Wed, 2008-10-01 at 21:04 -0400, Chris Tyler wrote:
> > > ...Which is why I like the translate I proposed earlier:
> > >
> > > tr "\012" " " <multi_line_file
> >
> > tr -d "\012" < multi_line_file
> >
> > is slightly more elegant. Of course this assumes the file is ASCII
> or
> > similar.
> >
> > poc
>
> But the OP said:
>
> > i want to have those lines joined to one line with spaces
True, I'd missed that.
poc
More information about the fedora-list
mailing list