LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Filenames with spaces and symbols... (https://www.linuxquestions.org/questions/linux-newbie-8/filenames-with-spaces-and-symbols-157113/)

Thewyzewun 03-13-2004 10:42 AM

Simple simple quick question
 
Simple question (but I don't know the answer!):

I want to copy and rename (to the name "blah") a file called "blah blah (blah blah_.txt" into "/root/"

So in order to do this I enter: "cp blah blah (blah blah_.txt /root/blah"

but it comes up so error, basically saying the brackets and spacing are very confusing for it, SO my question is:
How can I rephrase the command for it to interpret it correctly?

And yes I did google this question etc, I just didn't know how to phrase it for the search engine there or on this site to understand!

sterrenkijker 03-13-2004 10:53 AM

Try

cp "blah blah (blah blah_.txt" /root/

or

cp blah\ blah\ \(blah\ blah_.txt /root/

That should help.

Thewyzewun 03-13-2004 10:59 AM

Quote:

Originally posted by sterrenkijker
Try

cp "blah blah (blah blah_.txt" /root/

or

cp blah\ blah\ \(blah\ blah_.txt /root/

That should help.

:D:D thanks that did it


All times are GMT -5. The time now is 07:23 AM.