SUMMARY: unable to delete files with control chars in name

From: DSL <dsl_at_one.net>
Date: Wed, 07 Jul 1999 12:03:16 -0400

wow, fast response as usual! thx to all who responded.
while Gary George's suggestion to move good files to a new directory, then
delete the old dir would have worked, it was one i should have thought of
myself, so i went with Jean-Paul Roumian's idea, where i learned something
new (didnt know about the -i flag on 'find'):

    ls -i
    (gives the inodes list)

    find . -i [inode number] -exec rm {} \;



thx to everyone else, but they were simply variations of failed attempts i
had already made.

david landeen


-----Original Message-----

>I have a pgm which was supposed to generate several files with a
>date-formatted name, for example, 990630.cai. Unfortunately, due to an
error
>in the formatting, it generated these files with control chars instead, and
>I have been unable to remove them. Any suggestions? Below is an edited
>history.
>
>EBS1:RDB% ls
>4?x???.cai
>4?x???.inw
>4?x???.wbr
>4?x???.wiw
>4?x???.wnw
>EBS1:RDB% ls -l
>total 85416
>-rw-rw-rw- 1 erie erie 24245 Jun 30 20:34 4M-YM-^_at_M-^?.cai
>-rw-rw-rw- 1 erie erie 138569 Jun 30 20:34 4M-YM-^_at_M-^?.inw
>-rw-rw-rw- 1 erie erie 5566 Jun 30 20:34 4M-YM-^_at_M-^?.wbr
>-rw-rw-rw- 1 erie erie 221831 Jun 30 20:34 4M-YM-^_at_M-^?.wiw
>-rw-rw-rw- 1 erie erie 24391 Jun 30 20:34 4M-YM-^_at_M-^?.wnw
>EBS1:RDB% ls 4*.???
>4Y.cai not found
>4Y.inw not found
>4Y.wbr not found
>4Y.wiw not found
>4Y.wnw not found
>EBS1:RDB% ls -l 4*.???
>4Y.cai not found
>4Y.inw not found
>4Y.wbr not found
>4Y.wiw not found
>4Y.wnw not found
>EBS1:RDB% rm 4*.???
>rm: 4Y.cai: No such file or directory
>rm: 4Y.inw: No such file or directory
>rm: 4Y.wbr: No such file or directory
>rm: 4Y.wiw: No such file or directory
>rm: 4Y.wnw: No such file or directory
>EBS1:RDB% rm "4M-YM-^_at_M-^?.cai"
>rm: 4M-YM-^_at_M-^?.cai: No such file or directory
>EBS1:RDB% rm "4M-YM-^_at_M-^?".cai
>rm: 4M-YM-^_at_M-^?.cai: No such file or directory
>EBS1:RDB% rm "4M-YM-^_at_M-^?".???
>No match.
>
>
>
>
Received on Wed Jul 07 1999 - 15:58:19 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT