I have a file with the following name (I didn't name it!):
'A MULTI BAND MINI PRINTED OMNI DIRECTIONAL'$'\n''ANTENNA WITH V-SHAPED FOR RFID APPLICATIONS.pdf'
Weirdness is caused by the '$'\n' in the middle of the filename.
I can't do anything with this file except show it in ls
!.
How do I remove or rename this file?
I've looked at other answers on this site and tried the solutions provided - they all seem to have absolutely no effect. ls -l shows the following permissions for the file:
-rwxrwxrwx
touch 'A MULTI BAND MINI PRINTED OMNI DIRECTIONAL'\$'\n''ANTENNA WITH V-SHAPED FOR RFID APPLICATIONS.pdf'
. A directory listing shows-rw-rw-r-- 1 bbausch bbausch 0 May 6 14:38 A MULTI BAND MINI PRINTED OMNI DIRECTIONAL$\nANTENNA WITH V-SHAPED FOR RFID APPLICATIONS.pdf
. To delete it, I then typedrm A
followed by a tab; the filename was expanded, and therm
command succeeded. – berndbausch May 06 '21 at 05:36rm "'"*
(hoping no other filename starts with a quote). – berndbausch May 06 '21 at 05:41ls
is exactly what you need to type in your shell. – Gilles 'SO- stop being evil' May 06 '21 at 07:33rm A <Tab Completion>
doesn't work. It simply won't expand the filename. Once I type "A", it won't auto-complete. If I typeA\ M
, tab completion ERASES the '\ M' and leaves the A! I don't get it. – rothloup May 07 '21 at 01:34ls
– rothloup May 07 '21 at 01:35ls <filename>
orrm <filename>
, the response is "No such file or directory. – rothloup May 07 '21 at 01:37ls
has an option to show them; if all else fails, you could pipels
output intocat -v
orod -c
, for example. – berndbausch May 07 '21 at 01:48