Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I create a file starting from $SHELL, using quotes like " ",' ', \?

I tried, but it's not working.

share|improve this question
    
Do you mean "special characters" by "symbols"? If not, what else? Which specific commands have you tried, and what were the results? –  slhck Jul 26 '12 at 16:42
    
[nitesh@ical ~]$ mkdir '$SHELL' the above command will work, it allows you to create the directory with special symbols like "$" –  Nitesh Aug 10 '12 at 10:17

1 Answer 1

up vote 0 down vote accepted

You have to escape the special characters using the shell escape \ e.g.

touch \'test
share|improve this answer
    
THANK YOU even \$SHELL will work –  Nitesh Aug 10 '12 at 10:21
    
in addition: if you want to create files starting with - you can use touch -- -myfile or touch ./-myfile –  pqnet Sep 1 at 8:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.