How to list this data -

Joachim Backes joachim.backes at rhrk.uni-kl.de
Sun Nov 1 08:31:05 UTC 2009


On 11/01/2009 09:25 AM, Bob Goodwin wrote:
> On 01/11/09 02:54, Joachim Backes wrote:
>> cat /home/bobg/usg.txt | tr "\n" " "
>
>
>      [bobg at box9 ~]$ cat /home/bobg/usg.txt | tr "\n" " "
>
>      35 % 6.0 17.0 8 % 0.4 5.0
>
> That's the best solution yet. Not sure what it's doing but will look at
> the man page again when I am fully awake.
>
> Thanks.
>
> Bob
>

The tr command reads from stdin (that's the output of cat) and 
transforms all new line chars to blanks (see "man tr"), so all lines 
will be concatenated (by a blank char) to *one* line.

-- 

Joachim Backes <joachim.backes at rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6101 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20091101/09f402a7/attachment-0001.p7s>


More information about the fedora-list mailing list