>>>>> "Yanet" == Yanet Leon, <[EMAIL PROTECTED]> writes:
Yanet> Not necessarily a perl question. One of the users (on a Unix
Yanet> box) created a directory with a dash at the beginning of the
Yanet> name (no idea how he did it) and he needs to remove it. The
Yanet> name of the file is -testing is there a way to remove it
Yanet> using perl or other means. I removed it using the inode
Yanet> number of the directory. Is there another way?
Yup. rm -- -testing. If you read man rm, you'll see that '--' signifies
the end of switches, so it knows whatever follows is a path to a file.
But this really is very off-topic. :-)
- Chris.
--
$a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a
As to luck, there's the old miners' proverb: Gold is where you find it.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]