tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: unable to delete files with control chars in name
@ 1999-07-07 16:03 DSL
  0 siblings, 0 replies; only message in thread
From: DSL @ 1999-07-07 16:03 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-07 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-07 16:03 SUMMARY: unable to delete files with control chars in name DSL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox