LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2004, 10:42 AM   #1
Thewyzewun
Member
 
Registered: Sep 2003
Location: UK
Distribution: Xubuntu 15.10
Posts: 95

Rep: Reputation: 15
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!

Last edited by Thewyzewun; 03-13-2004 at 10:56 AM.
 
Old 03-13-2004, 10:53 AM   #2
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
Try

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

or

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

That should help.
 
Old 03-13-2004, 10:59 AM   #3
Thewyzewun
Member
 
Registered: Sep 2003
Location: UK
Distribution: Xubuntu 15.10
Posts: 95

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by sterrenkijker
Try

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

or

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

That should help.
thanks that did it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
filenames with spaces antony.booth Programming 5 11-01-2005 04:49 AM
How to use foreach on filenames with spaces? BrianK Linux - General 3 08-09-2005 12:15 PM
ls and filenames with spaces rose_bud4201 Programming 10 07-01-2005 08:28 AM
bash and filenames with spaces doctorwebbox Linux - General 2 12-15-2004 08:55 PM
spaces in filenames ebone Linux - General 2 11-12-2001 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration