PDA

View Full Version : make a file of name "--a"



anon10501
12-03-2013, 01:16 AM
Sir,

As per the slide in "4-4 File and Directory Deletion"
There is a file name as "--a". and i want to make that file with same name as "--a" using touch command. But it tell it is unrecognized option "--a"

Please let me know how we make it.

Thanks
anon10501

anup
12-03-2013, 06:16 AM
Anon10501,

You must have '--' before '--a' to tell touch that everything that follows is not an option. So, the following will work:

touch -- --a

Thanks,

Anup

anon10501
12-03-2013, 10:18 AM
Thanks sir