Re: howto join lines

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

 



Well i need it for script written in bash .

Thanks

On Wed, Oct 1, 2008 at 8:30 PM, Patrick O'Callaghan
<pocallaghan@xxxxxxxxx> wrote:
> On Wed, 2008-10-01 at 10:58 -0700, Fred Silsbee wrote:
>>
>> --- On Wed, 10/1/08, Dave Burns <tburns@xxxxxxxxxx> wrote:
>>
>> > From: Dave Burns <tburns@xxxxxxxxxx>
>> > Subject: Re: howto join lines
>> > To: "Community assistance, encouragement, and advice for using Fedora." <fedora-list@xxxxxxxxxx>
>> > 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
>> > <david@xxxxxxxxx> 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. There must be something better.
>> > >
>> > > Thanks in advance!
>> > >
>> > > David
>> > >
>> > > --
>> > > fedora-list mailing list
>> > > fedora-list@xxxxxxxxxx
>> > > To unsubscribe:
>> > https://www.redhat.com/mailman/listinfo/fedora-list
>> > > Guidelines:
>> > http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>> > >
>> >
>> >
>> >
>> > --
>> the good old command line "cat" was invented (I am told) to concatenate!
>
> 'cat' will not remove newlines.
>
>> need to know the whole problem first! editing, scripting, programming
>
> Agreed.
>
> poc
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux