[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Naming files after command arguments...
From: |
Steven Augart |
Subject: |
Re: Naming files after command arguments... |
Date: |
Wed, 8 Oct 2003 12:24:49 -0400 |
Dear "Security Analyst" weston,
To quote from the help text below:
To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
rm -- -foo
rm ./-foo
It works for me:
$ ls
$ touch -- -help
$ touch -- --help
$ touch -- --version
$ ls -l
totale 0
-rw-rw-r-- 1 augart augart 0 2003-10-08 12:21 --help
-rw-rw-r-- 1 augart augart 0 2003-10-08 12:21 --version
-rw-rw-r-- 1 augart augart 0 2003-10-08 12:21 -help
$ rm -- --help
$ ls -l
totale 0
-rw-rw-r-- 1 augart augart 0 2003-10-08 12:21 --version
-rw-rw-r-- 1 augart augart 0 2003-10-08 12:21 -help
$ rm ./--version
$ ls -l
totale 0
-rw-rw-r-- 1 augart augart 0 2003-10-08 12:21 -help
$
Please write back if you have any further problems.
Sincerely Yours,
--Steven Augart
|---------+----------------------------------------------->
| | "Security Analyst" |
| | <address@hidden> |
| | Sent by: |
| | bug-coreutils-bounces+augart=us.ibm.|
| | address@hidden |
| | |
| | |
| | 08/10/2003 09.48 |
| | |
|---------+----------------------------------------------->
>---------------------------------------------------------------------------------------------|
|
|
| To: address@hidden
|
| cc:
|
| Subject: Naming files after command arguments...
|
|
|
>---------------------------------------------------------------------------------------------|
simply name files after common command arguments... below i made an
executable and named it "--help" wich just happens to be one of the "rm"
arguments. so- whenever i try to delete this file from the command line, i
just get the "rm" help menu
*-------------COPIED TEXT BELOW---------------*
address@hidden ls
--help Floppy Trash dcom2.c nmap_198.192.89-112.txt
CD-ROM [cdrom1] r00t.desktop a.out hda1 scan198.txt
CD-ROM [cdrom] SelfLinux.desktop dcom2 hdb1 socks4.exe
address@hidden rm --help
Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).
-d, --directory unlink FILE, even if it is a non-empty directory
(super-user only)
-f, --force ignore nonexistent files, never prompt
-i, --interactive prompt before any removal
-r, -R, --recursive remove the contents of directories recursively
-v, --verbose explain what is being done
--help display this help and exit
--version output version information and exit
To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
rm -- -foo
rm ./-foo
Note that if you use rm to remove a file, it is usually possible to recover
the contents of that file. If you want more assurance that the contents
are
truly unrecoverable, consider using shred.
Report bugs to <address@hidden>.
address@hidden
*----------END OF COPIED TEXT-----------*
--
_______________________________________________
Get your free email from http://www.hackermail.com
Powered by Outblaze
_______________________________________________
Bug-coreutils mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-coreutils