Pipes are handy

Piping is a powerful concept that makes simple commands super useful. A pipe takes the output from one command and uses that as an input for the next one.

Kalle Tolonen
7.12.2023

In this case I had a task that required having a very large dataset sync from one service to another one.

To boost productivity I logged the individual cases that ended up in nullpointerexception while I did the necessary bug fixes for each case. So this is how you can read a log file in real time and query for instances of null in it.

tail -f yourfile.log |grep null

Comments

No published comments yet.


Add a Comment

Your comment is held for review before it appears publicly.

Tick the box, then click Submit right away (Google expires the check after about two minutes).