How can I list normal text (.txt) filenames, that don\'t end with a newline?
.txt
e.g.: list (output) this filename:
$ cat a.txt asdfasdlsad4rand
If you are using 'ack' (http://beyondgrep.com) as a alternative to grep, you just run this:
ack -v '\n$'
It actually searches all lines that don't match (-v) a newline at the end of the line.