* Renaming corrupted filenames
@ 2003-01-29 16:56 andy thomas
2003-01-29 18:35 ` Joe Chung
2003-01-30 5:50 ` Adam Price
0 siblings, 2 replies; 4+ messages in thread
From: andy thomas @ 2003-01-29 16:56 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Renaming corrupted filenames
2003-01-29 16:56 Renaming corrupted filenames andy thomas
@ 2003-01-29 18:35 ` Joe Chung
2003-01-31 10:31 ` andy thomas
2003-01-30 5:50 ` Adam Price
1 sibling, 1 reply; 4+ messages in thread
From: Joe Chung @ 2003-01-29 18:35 UTC (permalink / raw)
andy thomas <andy@ic.ac.uk> 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")))
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Renaming corrupted filenames
2003-01-29 18:35 ` Joe Chung
@ 2003-01-31 10:31 ` andy thomas
0 siblings, 0 replies; 4+ messages in thread
From: andy thomas @ 2003-01-31 10:31 UTC (permalink / raw)
On Wed, 29 Jan 2003, Joe Chung wrote:
> andy thomas <andy@ic.ac.uk> 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.
Brilliant!! Thanks a lot, that did the trick. I also found it was possible
to delete strange files too.
I think I'll take another look at emacs now even though I'm a vi/vim
enthusiast myself.
cheers,
Andy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Renaming corrupted filenames
2003-01-29 16:56 Renaming corrupted filenames andy thomas
2003-01-29 18:35 ` Joe Chung
@ 2003-01-30 5:50 ` Adam Price
1 sibling, 0 replies; 4+ messages in thread
From: Adam Price @ 2003-01-30 5:50 UTC (permalink / raw)
In news:Pine.LNX.4.44.0301291650160.7100-100000@anahata.ma.ic.ac.uk,
andy thomas <andy@ic.ac.uk> typed:
> 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
Some ways include...
removing them from the windows end.
Using wildcards in place of the odd
characters (eg where it says \214 you put ?)
Moving the rest of the files out and then removing the dir.
using rm -i * and saying yes only to the ones you want to delete.
Using a gui tool like dired mode or the file explorer.
HTH
Adam Price
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-31 10:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-29 16:56 Renaming corrupted filenames andy thomas
2003-01-29 18:35 ` Joe Chung
2003-01-31 10:31 ` andy thomas
2003-01-30 5:50 ` Adam Price
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox