cd and rm a directory with '^M'
freebsd-lists-erik at erikosterholm.org
Thu Sep 4 03:35:01 UTC 2008
On Wed, Sep 03, 2008 at 06:51:11PM -0700, Noah wrote:
> Hi there,
> I had rsync create a directory with a '^M' in it.
> how do I rm -rf the directory?
There are multiple possibilities:
1) Use a shell which supports tab completion, and tab-complete the
2) Embed the '^M' using '^V''^M' (type ctrl-v then ctrl-m.)
3) Use shell globbing (if the file is abra^Mcadabra, type:
rm abra* (only if the above matched exactly what you want to delete.)
More information about the freebsd-questions