[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't Delete File with Bad Chars



Osamu Aoki wrote:
> Hi,
>
> On Thu, Dec 10, 2009 at 05:04:03PM -0600, Kent West wrote:
>   
>> westk[@]goshen.acu.edu]:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
>> 2008/445:> stat Tentative\ Schedule\ \?��\ Math\ 445.pdf
>>   File: `Tentative Schedule ?\307\364 Math 445.pdf'
>>     
>
> Looks like latin1 / UTF-8 issue.  New Debian/Windows are in UTF-8 while
> old Debian/Windows for most westerners are latin1 variants.
>
>   
>> westk[@]goshen.acu.edu]:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
>> 2008/445:> find . -inum 59670414 -exec rm -i {} \;
>> rm: remove regular file `./Tentative Schedule ?\307\364 Math 445.pdf'? y
>> rm: cannot remove `./Tentative Schedule ?\307\364 Math 445.pdf': No such
>> file or directory
>>     
>
> I thought using inode number is the way too .... wait I see some googled
> pages use:
>
> $ find . -inum 59670414 -exec rm -i '{}' \;
>
> I think use of single qotes here may be what is needed. Then I will also
> try different encodings:
>
> $ LC_ALL=C           LANG=$LC_ALL find . -inum 59670414 -exec rm -i '{}' \;
> $ LC_ALL=en_US.UTF-8 LANG=$LC_ALL find . -inum 59670414 -exec rm -i '{}' \;
> $ LC_ALL=en_US       LANG=$LC_ALL find . -inum 59670414 -exec rm -i '{}' \;
>
> Good luck.
>
> Osamu
>
>
>   
goshen:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
2008/445# LC_ALL=en_US       LANG=$LC_ALL find . -inum 60168219 -exec rm
-i '{}' \;
rm: remove regular file `./Tentative Schedule ?\307\364 Math 445.pdf'? y
rm: cannot remove `./Tentative Schedule ?\307\364 Math 445.pdf': No such
file or directory

Same for the other attempts.

Thanks, though!


-- 
Kent West     <*)))><
http://kentwest.blogspot.com
Praise Yah! \o/



Reply to: