Need to add date to script -
Bob Goodwin
bobgoodwin at wildblue.net
Thu Nov 12 19:10:21 UTC 2009
On 12/11/09 12:44, Steven Stern wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/12/2009 11:19 AM, Bob Goodwin wrote:
>
>> I have a simple bash script that lists my internet usage in gigs,
>> the first three lines are data downloaded, the second three data
>> uploaded, 17.0 g and 5.0 g respectively are the upper limit for 30
>> days..
>>
>> cat /home/bobg/usg.txt>> /home/bobg/usg1.sav
>>
>> Listing that -
>> cat /home/bobg/usg1.sav
>>
>> produces a long list which I haven't been able to do much with due
>> to my limited knowledge.
>>
>> 30 %
>> 5.2
>> 17.0
>> 9 %
>> 0.4
>> 5.0
>> 30 %
>> 5.0
>> 17.0
>> 9 %
>> 0.4
>> 5.0
>>
>> I would like to have a "date" command inserted to separate each
>> group of six lines. Can some one tell me how to do that or point me
>> in the right direction.
>>
>> This is an updated F-11 computer.
>>
>> Bob
>>
>>
>
> date>> /home/bobg/usg1.save& cat /home/bobg/usg.txt>>
> /home/bobg/usg1.sav
>
> If you want it in a different format, man date and look at the format
> options.
>
> - --
>
>
>
> Steve
>
> Thanks Steve and Chris. I wont tell you how much time I've spent
> messing with that problem, simple for you perhaps, but not for me.
> I do however learn a little each time and keep notes and can
> expand on what I learn.
>
> Bob
>
> PS: Can't send right now, rain blocking k-band path to satellite.
>
More information about the fedora-list
mailing list