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 have ripgrep installed:
rg -l '[^\n]\z'
That regular expression matches any character which is not a newline, and then the end of the file.