Linux: grep for multiple strings in a log file on a certain date -


sorry seemingly asked question, other thread answers did not work me. log trying search through formatted so:

jul 24 23:11:08 tg-12345 gateway [words] tools 987654321 join request 

i want grep log found in /var/etc/messages instances of date, let's 'jul 24' in case, , '987654321'. proper instruction this? thank you.

edit: though not necessary, if know how throw in timeframe (the hour, not date) in same search, great; need @ least date , tool# working first. again.

just use command twice:

grep 'jul 24' <filename> | grep '987654321' 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -