[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: howto join lines



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]