Re: howto join lines

2008-10-02 Thread Gianluca Cecchi
On Wed, 1 Oct 2008 17:13:22 +0200 David Hláčik wrote: > i want to have those lines joined to one line with spaces > Before : > > textone > texttwo > something > > After : > > textone texttwo something Just another option: paste -s -d " " filename Or, if the input comes from many single line files

Re: howto join lines

2008-10-01 Thread Patrick O'Callaghan
On Wed, 2008-10-01 at 21:04 -0400, Chris Tyler wrote: > > > ...Which is why I like the translate I proposed earlier: > > > > > >tr "\012" " " > > > tr -d "\012" < multi_line_file > > > > is slightly more elegant. Of course this assumes the file is ASCII > or > > similar. > > > > poc > > B

Re: howto join lines

2008-10-01 Thread Chris Tyler
On Wed, 2008-10-01 at 20:09 -0430, Patrick O'Callaghan wrote: > On Wed, 2008-10-01 at 20:04 -0400, Chris Tyler wrote: > > On Thu, 2008-10-02 at 09:37 +1000, Norman Gaywood wrote: > > > On Wed, Oct 01, 2008 at 03:55:08PM -0400, Chris Tyler wrote: > > > > On Wed, 2008-10-01 at 14:40 -0500, Les Mikes

Re: howto join lines

2008-10-01 Thread Patrick O'Callaghan
On Wed, 2008-10-01 at 20:04 -0400, Chris Tyler wrote: > On Thu, 2008-10-02 at 09:37 +1000, Norman Gaywood wrote: > > On Wed, Oct 01, 2008 at 03:55:08PM -0400, Chris Tyler wrote: > > > On Wed, 2008-10-01 at 14:40 -0500, Les Mikesell wrote: > > > > Patrick O'Callaghan wrote: > > > > > > > > > i

Re: howto join lines

2008-10-01 Thread Chris Tyler
On Thu, 2008-10-02 at 09:37 +1000, Norman Gaywood wrote: > On Wed, Oct 01, 2008 at 03:55:08PM -0400, Chris Tyler wrote: > > On Wed, 2008-10-01 at 14:40 -0500, Les Mikesell wrote: > > > Patrick O'Callaghan wrote: > > > > > > > i want to have those lines joined to one line with > > > >>> spaces

Re: howto join lines

2008-10-01 Thread Norman Gaywood
On Wed, Oct 01, 2008 at 03:55:08PM -0400, Chris Tyler wrote: > On Wed, 2008-10-01 at 14:40 -0500, Les Mikesell wrote: > > Patrick O'Callaghan wrote: > > > > > i want to have those lines joined to one line with > > >>> spaces > > Before : > > > > textone > > texttwo > >

Re: howto join lines

2008-10-01 Thread Alan Cox
On Wed, 1 Oct 2008 21:43:33 +0200 "David Hláčik" <[EMAIL PROTECTED]> wrote: > Well i need it for script written in bash . http://student.northpark.edu/pemente/sed/sed1line.txt might be helpful -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/lis

Re: howto join lines

2008-10-01 Thread Chris Tyler
On Wed, 2008-10-01 at 14:40 -0500, Les Mikesell wrote: > Patrick O'Callaghan wrote: > > > i want to have those lines joined to one line with > >>> spaces > Before : > > textone > texttwo > something > > After : > > textone texttwo something >

Re: howto join lines

2008-10-01 Thread Les Mikesell
Patrick O'Callaghan wrote: i want to have those lines joined to one line with spaces Before : textone texttwo something After : textone texttwo something the good old command line "cat" was invented (I am told) to concatenate! 'cat' will not remove newlines. Not by itself, but its

Re: howto join lines

2008-10-01 Thread David Hláčik
gt;> > From: Dave Burns <[EMAIL PROTECTED]> >> > Subject: Re: howto join lines >> > To: "Community assistance, encouragement, and advice for using Fedora." >> > >> > Date: Wednesday, October 1, 2008, 5:51 PM >> > echo 'texton

Re: howto join lines

2008-10-01 Thread Patrick O'Callaghan
On Wed, 2008-10-01 at 10:58 -0700, Fred Silsbee wrote: > > --- On Wed, 10/1/08, Dave Burns <[EMAIL PROTECTED]> wrote: > > > From: Dave Burns <[EMAIL PROTECTED]> > > Subject: Re: howto join lines > > To: "Community assistance, encouragement, and advice

Re: howto join lines

2008-10-01 Thread Fred Silsbee
--- On Wed, 10/1/08, Dave Burns <[EMAIL PROTECTED]> wrote: > From: Dave Burns <[EMAIL PROTECTED]> > Subject: Re: howto join lines > To: "Community assistance, encouragement, and advice for using Fedora." > > Date: Wednesday, October 1, 2008, 5:51 PM

Re: howto join lines

2008-10-01 Thread Dave Burns
echo 'textone texttwo something'|xargs textone texttwo something On Wed, Oct 1, 2008 at 5:13 AM, David Hláčik <[EMAIL PROTECTED]> wrote: > Hello guys, > > i want to have those lines joined to one line with spaces > > Before : > > textone > texttwo > something > > After : > > textone texttwo somet

Re: howto join lines

2008-10-01 Thread Chris Tyler
On Wed, 2008-10-01 at 17:13 +0200, David Hláčik wrote: > Hello guys, > > i want to have those lines joined to one line with spaces > > Before : > > textone > texttwo > something > > After : > > textone texttwo something > > So far i have been using fmt -w 2000 , but this is limited to 2000 >

Re: howto join lines

2008-10-01 Thread Steve Searle
Around 04:40pm on Wednesday, October 01, 2008 (UK time), Fred Silsbee scrawled: > use vi and "J" J will only join two lines, although you could use 2J (although you need the number of linnes correct). gqap will be better I think. Steve -- (o< www.stevesearle.com //\ Powered by

Re: howto join lines

2008-10-01 Thread Steve Searle
Around 04:13pm on Wednesday, October 01, 2008 (UK time), David Hláčik scrawled: > Hello guys, > > i want to have those lines joined to one line with spaces > > Before : > > textone > texttwo > something > > After : > > textone texttwo something > > So far i have been using fmt -w 2000 , but

Re: howto join lines

2008-10-01 Thread Fred Silsbee
--- On Wed, 10/1/08, David Hláčik <[EMAIL PROTECTED]> wrote: > From: David Hláčik <[EMAIL PROTECTED]> > Subject: howto join lines > To: "Fedora" > Date: Wednesday, October 1, 2008, 3:13 PM > Hello guys, > > i want to have those lines joined to one

howto join lines

2008-10-01 Thread David Hláčik
Hello guys, i want to have those lines joined to one line with spaces Before : textone texttwo something After : textone texttwo something So far i have been using fmt -w 2000 , but this is limited to 2000 characters. There must be something better. Thanks in advance! David -- fedora-list