:: Re: [DNG] slashes in FAT file names
Top Page
Delete this message
Reply to this message
Author: Gonzalo Pérez de Olaguer Córdoba
Date:  
To: dng
Subject: Re: [DNG] slashes in FAT file names
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 ...


-- 
   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