Quantcast
Channel: Edmonds Commerce » debugging
Viewing all articles
Browse latest Browse all 10

Format searched log files

$
0
0

When you are monitoring a log file you may want to narrow it down, and format the results. This simple one line command will break up the output from a log file to make it easier to quickly read tail -f /path/to/log | grep "search term" | sed 's/\(.*\)/----------\n\1\n----------/' More Reading: Bash timeout and copying [...]

The post Format searched log files appeared first on Edmonds Commerce. Edmonds Commerce are Magento specialist developers based in the UK.


Viewing all articles
Browse latest Browse all 10

Trending Articles