How to list this data -

Hiisi very-cool at rambler.ru
Sat Oct 31 18:55:57 UTC 2009


2009/10/31 Bob Goodwin <bobgoodwin at wildblue.net>:
>
> 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 at 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
>
>
>
> .
>
> --
> 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
>

Perhaps there's some command. I don't remember. You could do it using
simple script. Something like that:
#!/bin/bash
cat /home/bobg/usg.txt | while read line; do
printf "$line"
done

Place it in a text file and make it executable (chmod +x <file_name>)

-- 
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.
--
SIP: hiisi at ekiga.net
------------------------------
pub   1024D/085B139A
--
Powered by Fedora:
http://fedoraproject.org/




More information about the fedora-list mailing list