How to get the line non-empty of a file using tail ? Bash
- by debugger
Do you have an idea how to get the last line non-empty using tail in bash ?
For example my_file.txt will be as following:
hello
hola
bonjour
(empty line)
(empty line)
Obviously if i do tail -n 1 my_file.txt i will get an empty line. In my case i want to get bonjour
Any clues?
Thanks
Debugger