Re: How to sort a file -

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

 



Bob Goodwin wrote:
Bill Davidsen wrote:
Bob Goodwin wrote:

I have a file of Netgear router data that I would like to sort on date and time.
the form is as below:

   [Site allowed: weather.noaa.gov] from source 192.168.1.9 Saturday,
   Aug 01,2009 17:02:51
   [Site allowed: safebrowsing-cache.google.com] from source
   192.168.1.11 Saturday, Aug 01,2009 17:00:16
   [Site allowed: safebrowsing.clients.google.com] from source
   192.168.1.11 Saturday, Aug 01,2009 17:00:13

Looks like a case for a few lines of perl, and a quick call to sort for the ordering, probably the easiest fix.

See attached if the mailer doesn't eat it.



No the mailer didn't "eat it," but I haven't figured how to implement it. After some experimenting I have to admit I need an example. I am eager to see it work though.





   It looks like  "/home/bobg/apps/logsort.pl  /home/bobg/NG-LOG >
   /home/bobg/NG-LOG2" does the sort and puts it all in NG-LOG2.

   Thanks.

   Bob



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