[CentOS] command line escaping a dash
Hakan Koseoglu
hakan.koseoglu at gmail.comMon Oct 20 15:09:43 UTC 2008
- Previous message: [CentOS] command line escaping a dash
- Next message: [CentOS] command line escaping a dash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Craig, Craig White wrote: > I cannot figure this out... > > I would like to change the owner of a bunch of folders whose name begins > with a dash... When you are using shell commands, if you use double-dash, you don't need to escape it. [root at red ~]# mkdir -- "-test" [root at red ~]# chown oracle -- -test [root at red ~]# ls -ld -- -test drwxr-xr-x 2 oracle root 4096 Oct 20 16:01 -test -- stops the commands continuing the parsing the parameters as options. Cheers, Hakan
- Previous message: [CentOS] command line escaping a dash
- Next message: [CentOS] command line escaping a dash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list