From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,79858e3f3f9e8027 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-01-29 10:35:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail Newsgroups: comp.unix.tru64 Subject: Re: Renaming corrupted filenames References: From: Joe Chung User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 12.234.205.63 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1043865306 12.234.205.63 (Wed, 29 Jan 2003 18:35:06 GMT) NNTP-Posting-Date: Wed, 29 Jan 2003 18:35:06 GMT Organization: AT&T Broadband Date: Wed, 29 Jan 2003 18:35:06 GMT Xref: archiver1.google.com comp.unix.tru64:9464 andy thomas writes: > We have a server running DU 4.0D and samba 2.2.7 which among other things > is a fileserver for a number of Windows NT/2000/XP PC clients. From time > to time, a user complains about strange files apearing in his/her home > directory and the ls command list these as the filename '?'. Using the -b > option to ls gives the octal equivalent of these files with non-printable > names, etc \201, \214, etc. But how can I use these octal file pointers as > an argument to the mv command? I'd like to be able to type something like: > > mv '\201' recovered_file.1 > > Does anyone have any ideas? > > thanks in advance for any help, > > Andy > Dired mode from within [X]Emacs works every time on file names with weird characters. Start up [X]Emacs, Type ESC-X dired [ENTER], Enter the name of the directory, Scroll down to the file you want to rename, Type R "Note - uppercase 'R'", Enter the new name, Ctrl-x Ctrl-c to exit emacs. -jc -- (apply 'concat (reverse (list "com" (char-to-string 46) "yahoo" (char-to-string 64) "joechung")))