From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079058315735.tru64-unix-managers.marc@archive.invalid> From: DSL Date: Wed, 07 Jul 1999 16:03:16 +0000 To: tru64-unix-managers Subject: SUMMARY: unable to delete files with control chars in name X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079058315735 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-^@M-^?.cai >-rw-rw-rw- 1 erie erie 138569 Jun 30 20:34 4M-YM-^@M-^?.inw >-rw-rw-rw- 1 erie erie 5566 Jun 30 20:34 4M-YM-^@M-^?.wbr >-rw-rw-rw- 1 erie erie 221831 Jun 30 20:34 4M-YM-^@M-^?.wiw >-rw-rw-rw- 1 erie erie 24391 Jun 30 20:34 4M-YM-^@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-^@M-^?.cai" >rm: 4M-YM-^@M-^?.cai: No such file or directory >EBS1:RDB% rm "4M-YM-^@M-^?".cai >rm: 4M-YM-^@M-^?.cai: No such file or directory >EBS1:RDB% rm "4M-YM-^@M-^?".??? >No match. > > > >