Searching in big log files
You have big (gigabytes) log files, and want to search for text that occured recently (close to the end of file).
Open file in less:
$ less file.log
Go to the end of file: press SHIFT+G
Press CTRL+C if you don't need lines numbers
Enter:
?<search term>
to search backwards for the term. Press "?" to search for next occurence.
Written by Paweł Stawicki
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#