cd and rm a directory with '^M'

Edwin Groothuis edwin at mavetju.org
Thu Sep 4 03:48:35 UTC 2008


> I had rsync create a directory with a '^M' in it.

Use command-line completion:

[~/xx] edwin at k7>touch foo^Mbar		# that's ^V^M
[~/xx] edwin at k7>ls -l
total 0
-rw-r--r--  1 edwin  edwin  0 Sep  4 13:46 foo?bar
[~/xx] edwin at k7>rm foo <TAB>		# autocompletes to foo^Mbar


-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |              Weblog: http://www.mavetju.org/weblog/


More information about the freebsd-questions mailing list