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.

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

All articles


Comments

No published comments yet.


Add a Comment

Your comment is held for review before it appears publicly.

Your email is never published or shared.

Up to 2,000 characters.

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