Selecting files with ^M in the filename
I have a directory where some files contain the ^M special character in their filenames. (not sure how they got there, possibly related to editing them on Windows)
ls shows a question-mark in those filenames.
tab-completion shows a ^M instead of a question mark.
I'd like to get a list of all those files and delete them? How can I do that?
I've tried this:
ls *?.txt
ls *^M.txt
but both create errors
Thanks for your help!
|