the file looks like this:
>5BW0 B
CHHHHHHHHHHHHHHHHHHHHHHHCCCCCCEEEEEEEEEECCEEEEEEEEEEECCCCCCEEEEEEEEECCCCCCCHHHHCCEEEEEEEC
However the second line could be empty.
I'm trying to find the files with empty second lines.
So far I came up with this in a for loop:
cat file1 | sed -n '2p' | grep '^$'
the problem is that I'm not saving the filename so that I can print it afterwards. How can I fix this?