Re: removing wierd files
On Wed, Oct 20, 2004 at 02:42:21PM -0400, Matt Price wrote: CW Harris wrote: [Snip] thank you for the info. anyone know what the '--' option sigifies? I notice it's not really documented in the man page. m '--' instructs most utilities to stop parsing command options and treat everything after as just input. In the case of 'rm', '--' says basically that anything after that will be treated as a file to be removed. -- asg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
removing wierd files
hi, somehow I've gotten a bunch of strange files in my home directory: -rw---1 matt matt 16K 2004-05-31 17:07 -0.png -rw---1 matt matt 80K 2004-05-31 17:07 -0.wmf -rw---1 matt matt 20K 2004-04-27 12:25 -1.jpg -rw---1 matt matt 136 2004-05-31 17:07 -1.png -rw---1 matt matt 80K 2004-05-31 17:07 -1.wmf I've tried to remove them but bash doesn't seem to like commands of hte kind: rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? thanks, matt -- .''`. Matt Price : :' : Debian User `. `'`hemi-geek `- -- don't use these addresses: [EMAIL PROTECTED], [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
On Wed, Oct 20, 2004 at 12:51:32PM -0400, Matt Price wrote: [Snip] rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? try 'rm -- -0.pnf' -- asg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
Ar Wed, 20 Oct 2004 12:51:32 -0400, scríobh Matt Price: somehow I've gotten a bunch of strange files in my home directory: I've tried to remove them but bash doesn't seem to like commands of hte kind: rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? thanks, matt What about rm *0.png
Re: removing wierd files
On Wed, Oct 20, 2004 at 01:33:30PM -0400, Adam Garside wrote: On Wed, Oct 20, 2004 at 12:51:32PM -0400, Matt Price wrote: [Snip] rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? try 'rm -- -0.pnf' Or rm ./-0.pnf works too. -- Chris Harris [EMAIL PROTECTED] --- GNU/Linux --- The best things in life are free. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
On Wed, Oct 20, 2004 at 12:51:32PM -0400, Matt Price wrote: hi, somehow I've gotten a bunch of strange files in my home directory: -rw---1 matt matt 16K 2004-05-31 17:07 -0.png -rw---1 matt matt 80K 2004-05-31 17:07 -0.wmf -rw---1 matt matt 20K 2004-04-27 12:25 -1.jpg -rw---1 matt matt 136 2004-05-31 17:07 -1.png -rw---1 matt matt 80K 2004-05-31 17:07 -1.wmf I've tried to remove them but bash doesn't seem to like commands of hte kind: rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? rm -- -* Frank thanks, matt -- .''`. Matt Price : :' : Debian User `. `'` hemi-geek `- -- don't use these addresses: [EMAIL PROTECTED], [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. - Brian W. Kernighan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
On Wed, Oct 20, 2004 at 06:32:45PM +0100, Ken Gilmour wrote: Ar Wed, 20 Oct 2004 12:51:32 -0400, scr?obh Matt Price: ?somehow I've gotten a bunch of strange files in my home directory: ?I've tried to remove them but bash doesn't seem to like commands of ?hte kind: ?rm \-* ?or ?rm '-0.pnf' ?is there a way to reference files whose names begin with -? ?thanks, ?matt What about rm *0.png tried that too: $ rm *0.png rm: invalid option -- 0 Try `rm --help' for more information. somehow I need to escape the '-' but can't seem to manage it. m -- .''`. Matt Price : :' : Debian User `. `'`hemi-geek `- -- don't use these addresses: [EMAIL PROTECTED], [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
CW Harris wrote: On Wed, Oct 20, 2004 at 01:33:30PM -0400, Adam Garside wrote: On Wed, Oct 20, 2004 at 12:51:32PM -0400, Matt Price wrote: [Snip] rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? try 'rm -- -0.pnf' Or rm ./-0.pnf works too. doh! and it's even in the manual! thank you for the info. anyone know what the '--' option sigifies? I notice it's not really documented in the man page. m -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
On Wed, Oct 20, 2004 at 02:42:21PM -0400, Matt Price wrote: CW Harris wrote: On Wed, Oct 20, 2004 at 01:33:30PM -0400, Adam Garside wrote: On Wed, Oct 20, 2004 at 12:51:32PM -0400, Matt Price wrote: [Snip] rm \-* or rm '-0.pnf' is there a way to reference files whose names begin with -? try 'rm -- -0.pnf' Or rm ./-0.pnf works too. doh! and it's even in the manual! thank you for the info. anyone know what the '--' option sigifies? I notice it's not really documented in the man page. m info rm or man getopt. GNU tools using the getopt function make use of -- to delimit options from parameters. (Note that in this case info does not give the same page as man---at least on my system). -- Chris Harris [EMAIL PROTECTED] --- GNU/Linux --- The best things in life are free. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: removing wierd files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Price [EMAIL PROTECTED] writes: is there a way to reference files whose names begin with -? I think it's done by adding another - to the start of the filename when you're specifying it. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBdvdKUzgNqloQMwcRAj4EAJ4vltkDPJYIObjSJFh5YRorDvmZpwCgt+52 fvQRxSt8/KY9e05I7/FRWWU= =aZpq -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]