command line escaping a dash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I cannot figure this out...

I would like to change the owner of a bunch of folders whose name begins
with a dash...

# chown Administrator \-BILLED\ JOBS\ -\ 1997-2002 -R
chown: invalid option -- B
Try `chown --help' for more information.

# chown Administrator "\-BILLED\ JOBS\ -\ 1997-2002" -R
chown: cannot access `\\-BILLED\\ JOBS\\ -\\ 1997-2002': No such file or
directory

# chown Administrator "-BILLED JOBS - 1997-2002" -R
chown: invalid option -- B
Try `chown --help' for more information.

# chown Administrator '-BILLED JOBS - 1997-2002' -R
chown: invalid option -- B
Try `chown --help' for more information.

?

Craig

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux