LinuxQuestions.org
Visit Jeremy's Blog.
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 07-29-2014, 03:50 PM   #1
aa8xx
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Rep: Reputation: Disabled
command line = how to remove my file2 - 3 - 4 or dir 1 2 3 4 rm will only do some


im new to linux and commnad Line says rm will remove dir1 or file1
but i have some that it will not remove. As in Test1 to tom dir
or Unsaved Document 1 . Tehy come up in the ls list but cant remove them .... any help is great . THANKS.!!
 
Old 07-29-2014, 04:00 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
What is the command you are using and what is the output and results?
 
Old 07-29-2014, 05:06 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
A name with embedded spaces will be treated as several separate arguments unless quoted.
Code:
rm "Test1 to tom"
rm "Unsaved Document 1"
You will run into a similar problem with any name that contains characters that are special to the shell (wildcard characters, quotes, various parentheses and brackets, etc.)
 
Old 08-08-2014, 03:11 PM   #4
aa8xx
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
well i guess i cant remove them lol lol lol ...because they did have upper case , as in Test and Unsaved Document 1 thank any way
 
  


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
Match file1 to file2 and remove non-matched lines by columns from file3 aori Linux - General 1 06-28-2014 03:33 AM
how can I connect to a D-link DIR-300 router using command line Tux Rules Linux - Networking 5 04-04-2011 02:31 PM
[SOLVED] Copy and replacing specific line from file1 to file2 line by line vjramana Programming 10 03-28-2011 08:49 AM
merge file1 at end of line file2 porkcharsui Linux - Newbie 2 03-23-2010 06:27 AM
Avoid cat file1>>file2 automatic add return after file2. AshesOfTime Programming 5 11-25-2004 08:27 AM


All times are GMT -5. The time now is 04:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration