0

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?

MadHatter
  • 79,770
  • 20
  • 184
  • 232
naturelle
  • 1
  • 1

2 Answers2

3

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.

unlink
  • 700
  • 7
  • 12
1

As per stackoverflow

tailf file | grep --line-buffered 00:16:CB:1E:AF:CA

should do the trick

thanasisk
  • 941
  • 6
  • 16