howto join lines

Dave Burns tburns at hawaii.edu
Wed Oct 1 17:51:48 UTC 2008


echo 'textone
texttwo
something'|xargs
textone texttwo something


On Wed, Oct 1, 2008 at 5:13 AM, David Hláčik <david at hlacik.eu> 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 at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>



-- 
———————————————————————-
Q: Why should this email be 5 sentences or less?
A: http://five.sentenc.es




More information about the fedora-list mailing list