How to Get the Second to Last Line From a File or Output in the Shell
It was so obvious that I almost slapped my head when I figured it out.
cat /path/to/file | tail -2 | head -1
It was so obvious that I almost slapped my head when I figured it out.
cat /path/to/file | tail -2 | head -1