Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi
I need to filter a log file.
I need to do something like: cat logfile | egrep '(X|Y)' but i need that X and Y will not be a part of word these the Complete word.
I know i need to use "awk".
is anyone can help me please.
now i need to do the next step is to count how many time X and Y appear in the log but not the SUM of them like:
cat logfile | egrep -wc '(X|Y)'
i don't mind to use a bash script who do it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.