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
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
--
--- 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
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
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
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.
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
--- 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
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
: 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
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
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
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:
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
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 :
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
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:
17 matches
Mail list logo