:: Re: [DNG] slashes in FAT file names
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Hendrik Boom
Date:  
À: dng
Sujet: Re: [DNG] slashes in FAT file names
On Sun, Dec 23, 2018 at 02:35:35AM +0100, Gonzalo Pérez de Olaguer Córdoba wrote:
> Hi Hendrik,
>
> El Sat, 22 Dec 2018 18:20:22 -0500
> Hendrik Boom <hendrik@???> escribió:
>
> > > > > Rename them.
> > > > >
> > > > > 1. 'ls -i' #Gets the inode number.
> > > > > 2. 'find . -inum "inode-number-from-ls -i" -exec mv {} "newfilename" \;'
> > > > >
> >
> > Yes, I see inode numbers. Unfortunately, the files with slashes in
> > their names have question marks for their inode numbers.
> >
> > 2522 @  2523 ?  2526 ?                    ? 07/TRA~1.MP3       2516 

>
> You don't have to use inodes at all. Anything provided by find to match the file
> will do. For example, try something like:
>
> find . -type f -iname '07*TRA*MP3' -exec ...


Wouldn't find just try and stick the name of the file in for the {},
and then wouldn't mv have the same trouble I'm having with my other
commands, namely, that the name has a slash in it and that the slash
will get interpreted as a directory name separator rather then as an
ordinary part of the filename?

Is there a way of naming a file using the inode number? Like
/dev/sdb1/2527 or some such?

Of course, this syntax won't work in the case of an inode within a file
used as a block device.

-- hendrik

>
>
> -- 
>    Gonzalo Pérez de Olaguer Córdoba       salo@???
>   -=- buscando empleo desde 1988 -=-       www.gpoc.es 

>
> PGP: 3F87 CCE7 8B35 8C06 E637 2D57 5723 9984 718C A614
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng