Summary: filename with special characters, how to delete

From: Karl Devitt <kdevitt_at_iel.ie>
Date: Mon Oct 01 2001 - 07:07:54 EDT
ok, rm '-11.log' is what worked, tried it first and bingo.

other options:
rm -- -11.log
and then use the i number
ls -i *.log
then
find . -inum 'num' -exec rm {} \;
however didnt get to try these

Thanks all
karl.

-----Original Message-----
From: Adam Kirby [mailto:a.kirby@eim.surrey.ac.uk]
Sent: 01 October 2001 11:56
To: Karl Devitt
Subject: Re: filename with special characters, how to delete


On Mon, 1 Oct 2001, Karl Devitt wrote:

> I've got a file called -11.log, how can i remove this? tried rm "-11.log"
> and rm "\-11.log" can anyone help.

Hi Karl,

rm './-11.log'

should do it.

Cheers, Adam.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Oct 1 06:06:38 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:26 EST