I have a logfile, snd I would like to search for keywords in it. But I only want to examine the last 10 lines, not the whole text. Could you please help me in this?
Asked
Active
Viewed 52 times
1 Answers
0
On linux and mac or any *nix terminal emulator on windows (e.g. cygwin) you could do something like this:
tail -n 10 filename.txt | grep "pattern to search"

romeu.hcf
- 73
- 1
- 7
-
I’m using windows, so i can’t use this method for my problem. – Frank Conrad Apr 11 '18 at 09:25