Re: How to list this data -

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

 



On 11/01/2009 09:42 AM, Bob Goodwin wrote:
On 01/11/09 03:31, Joachim Backes wrote:
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@box9 ~]$ cat /home/bobg/usg.txt | tr "\n" " "

Some bits more compact:

tr </home/bobg/usg.txt "\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.



Yes, I kept wondering, if there was a way to change the "new line" to a
space, tab, comma, whatever but I couldn't see how. Obviously I lack the
skill to do the things I want ...

Thanks to all.

Bob



--
Joachim Backes <joachim.backes@xxxxxxxxxxxxxx>

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
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