Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2008 13:48:33 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        freebsd-questions@FreeBSD.org
Cc:        Noah <admin2@enabled.com>
Subject:   cd and rm a directory with '^M'
Message-ID:  <20080904034833.GA25655@k7.mavetju>
In-Reply-To: <48BF3F0F.6030606@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I had rsync create a directory with a '^M' in it.

Use command-line completion:

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


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080904034833.GA25655>