From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms-smtp-02.texas.rr.com ([24.93.47.41] helo=ms-smtp-02-eri0.texas.rr.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1BvhQy-0002QB-00 for ; Fri, 13 Aug 2004 15:09:48 -0400 Received: from tomass (cs24328-50.austin.rr.com [24.243.28.50]) by ms-smtp-02-eri0.texas.rr.com (8.12.10/8.12.7) with ESMTP id i7DJ9jHv018627 for ; Fri, 13 Aug 2004 14:09:45 -0500 (CDT) Received: from stivers_t by tomass with local (Exim 4.34) id 1BvhQv-0004MA-8G for speakup@braille.uwo.ca; Fri, 13 Aug 2004 14:09:45 -0500 Date: Fri, 13 Aug 2004 14:09:45 -0500 To: speakup@braille.uwo.ca Message-ID: <20040813190945.GE14593@tomass.dyndns.org> Mail-Followup-To: speakup@braille.uwo.ca References: <20040813011442.GA29516@lava-net.com> <20040813175658.GA15883@sunset.net> <20040813181835.GC9233@rogers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20040813181835.GC9233@rogers.com> X-Request-PGP: http://tomass.dyndns.org/~stivers_t/pubkey.asc X-Uptime: 4 weeks 4 days 19 hours 3 minutes 25 seconds User-Agent: Mutt/1.5.6+20040803i From: Thomas Stivers X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: escaping filenames X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.4 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 19:09:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Aug 13 2004 at 02:18:35PM -0400, Terry D. Cudney wrote: > Hi all, > > In this thread, how do I get rid of a file that shows up in an 'ls' listings as "^K". It is a zero length file, but persistently there. Well that is likely a control k character and a bit funny to type. One way is to use control-v to escape the next control char, so you would do control-v control-k as the argument to an rm or mv command. Another nifty trick is to use ls and find to get crazy files by their inode number. For example: ~$ ls -i 77871 bin 78082 lynx_bookmarks.html 93045 Maildir 108489 tmp 93244 xml ~$ find ~ -inum 93244 /home/stivers_t/xml Its kind of a cluge, but it was the only way back in the days of funky terminals that didn't do control characters. HTH or at least hope it was interesting. - -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan Thomas Stivers e-mail: stivers_t@tomass.dyndns.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBHRH55JK61UXLur0RAsevAJ96SXBTkl2kK+vbofdXNAa3inlknwCfe1nX LfAXU3JblslaoBzAEq+tsww= =0xvc -----END PGP SIGNATURE-----