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: paste -d

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 --

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 fedora-list@redhat.com Date: Wednesday, October 1, 2008, 3:13 PM Hello guys, i want to have those lines joined to one line with spaces Before

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 this is

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 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 characters.

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 something So far

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. fedora-list@redhat.com Date: Wednesday, October 1, 2008, 5:51 PM echo 'textone texttwo

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 for using Fedora. fedora-list@redhat.com Date

Re: howto join lines

2008-10-01 Thread David Hláčik
: howto join lines To: Community assistance, encouragement, and advice for using Fedora. fedora-list@redhat.com Date: Wednesday, October 1, 2008, 5:51 PM echo 'textone texttwo something'|xargs textone texttwo something On Wed, Oct 1, 2008 at 5:13 AM, David Hláčik [EMAIL

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 a

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 the good old command line cat was invented (I am told) to

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:

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 something After : textone texttwo

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 Before :

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 want to have those

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 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: