On Thu, 27 Nov 2025 17:46:32 -0600
James via linux <linux [ at ] linux-ottawa [ dot ] org> wrote:
> I need a command line way to rename a directory starting with
> ''$'\n''?
If you're using bash, tab completion can help out. Start typing the
"mv" command and then a backslash and the first character of the
directory:
mv \' <TAB>
Keep adding backslashes and characters until the tab completion
completes the whole name. It should add escapes so the shell doesn't
mangle the filename. Then type a space and the new name and you should
be good to go.
Regards,
Dianne.
To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org