How to format log output to make it more readable
Posted: Tue Nov 22, 2022 11:53 am
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.
Explanation:
Code: Select all
some-command | cut -b 1-80
- cut will remove sections from each line of files
- b will select only these bytes