bash:files:delete_files_with_control_characters_in_their_filenames
BASH - Files - 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.
NOTE: The \ escapes the space.
The command looks like:
rm \ ^L
bash/files/delete_files_with_control_characters_in_their_filenames.txt · Last modified: 2022/06/13 10:34 by peter