Re: Need to add date to script -

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

 



-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkr8SXgACgkQeERILVgMyvD1RQCdEcVu0F65gsuIBTdvRpzaxHvg
fIYAn1aOaCc1MC3c8i3vlbrcnnAylHcV
=1ZYs
-----END PGP 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