Re: How to list this data -

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

 



On Sun, Nov 1, 2009 at 1:24 PM, Joachim Backes
<joachim.backes@xxxxxxxxxxxxxx> wrote:
> On 10/31/2009 07:41 PM, Bob Goodwin wrote:
>>
>> I can extract the following usage data from the Wildblue html usage
>> screen.
>> I would like to have them in a file that would put the data on a
>> horizontal line separated by some white space perhaps.
>>
>> My objective being to keep a record of daily bandwidth usage. [35% or
>> 6.0 gB is my current usage, 17.0 the 30 day download allotment, the
>> other numbers for upload usage.]
>>
>>         [bobg@box9 ~]$ cat /home/bobg/usg.txt
>>
>>         35 %
>>         6.0
>>         17.0
>>         8 %
>>         0.4
>>         5.0
>>
>> I've been puzzling over this since yesterday, I'm sure there must be a
>> simple solution but I just haven't found it.
>>
>> Can someone point me in the right direction?
>>
>> Bob
>>
>>
>>
>> .
>>
>
> With bash only: cat /home/bobg/usg.txt | tr "\n" " "

Complete shell "in-process" implementation -

$ echo `< usg.txt`

or


$ echo $(< usg.txt)


Didar

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