file:delete_files_with_control_characters_in_their_filenames
This is an old revision of the document!
File - Delete files with control characters in their filenames
To delete files with control characters in them like ^M or ^L use the control-V shell feature. This tells many shells to interpret the next input character as a literal character (instead of as a control character).
To delete a file with a space before the ctrl-L “ ^L” you would issue the following keystrokes in this order (separated by commas) r,m, ,\, ,ctrl-v,ctrl-l. The \ escapes the space. The command looks like:
rm \ ^L
file/delete_files_with_control_characters_in_their_filenames.1468175416.txt.gz · Last modified: 2020/07/15 09:30 (external edit)