Re: Command grep -

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

 



On 12.04.2013 19:27, Bob Goodwin - Zuni, Virginia, USA wrote:
> On 12/04/13 13:04, Reindl Harald wrote:
>> Am 12.04.2013 18:31, schrieb Bob Goodwin - Zuni:
>>> >
>>> > If I do "less syslog.txt | grep DST=17." I get a mixture of outputs
>>> containing "17."
>> escaping and quotes are your friend
>> less syslog.txt | grep "DST=17\."
>>
>>
>>
> Thanks much, I messed with that for an hour and got no where!

"clouds"? :)

awk '{print $11}' syslog.txt | uniq
DST=17.171.4.13
DST=174.35.3.56
or
awk '{sub("DST=","",$11); print $11}' syslog.txt | uniq
17.171.4.13
174.35.3.56

man 1 gawk
man 1 uniq


poma

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux