howto join lines

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu Oct 2 12:49:24 UTC 2008


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 " " file1 file2 ... filen

;-)




More information about the fedora-list mailing list