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
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
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
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
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
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
> >
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
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
>
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
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
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
--- 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
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
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
>
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
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
--- 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
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
18 matches
Mail list logo