Skip to content

manchicken here…

I’m a nerd, and it shows.

Category: Uncategorized

Shell command of the day


This command will look for the ID value XXXXX in your log files ending in either *.log or *.log-YYYYMMDD. It will then only return output with the preceding 20 characters, and the trailing 20 characters.
This is great for finding things quickly across a bunch of log files in varying formats to correlate production issues.

Posted on 2016-06-012022-11-09Categories Gist of the Day, UncategorizedTags bash, gist, grep, shellLeave a comment on Shell command of the day
Proudly powered by WordPress