Page 1 of 1

How to format log output to make it more readable

Posted: Tue Nov 22, 2022 11:53 am
by isscbta
Let's assume that you have to read data written in some log file, which is, as usually, pretty hard to read. By adding a little code at the right place, things could be made much easier.

Code: Select all

some-command | cut -b 1-80
Explanation:
  • cut will remove sections from each line of files
  • b will select only these bytes