I have text file containing 14000+ lines. it contains some data I am using for data training of speech recognition.
I created that file via coding of java and due to some semantic error a few of the lines are empty. Every time I run training it gives an error after about 30 minutes complaining that there is a empty line.
Is there any code/script/command which can give me list of line numbers with empty lines, so I can fill those empty lines and save my time?
Working should be like:
I will input a file.txt
and it will give me
line number 1121,1212,1450,13000 and so on ...
are empty in file.txt
Best Answer
You can find the empty lines, and their line numbers, with
An example:
If your "empty" lines contain blanks or TABs, use: