I would like to run the following command:
tail -f /var/log/syslog | grep -ri 00:16:CB:1E:AF:CA
In Linux but it does not working. How would you interactively grep certain text from log files?
I would like to run the following command:
tail -f /var/log/syslog | grep -ri 00:16:CB:1E:AF:CA
In Linux but it does not working. How would you interactively grep certain text from log files?
grep -r (recursive) makes no sense in your case, since you are just searching in a single file. Just use tail -f /var/log/syslog | grep -i 00:16:CB:1E:AF:CA
.
As per stackoverflow
tailf file | grep --line-buffered 00:16:CB:1E:AF:CA
should do the trick