I have a while loop which reads lines from a file using read line.
Then I want to check if the line is empty or not, how can I do it?
I already found questions about lines with space or about a variable in this site.
I have a while loop which reads lines from a file using read line.
Share
You can use the test:
From the bash man page: