LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2010, 02:17 PM   #1
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
bash question


can i use rm -r against a list created with
Code:
find -R /dir/*.part!;rm -r *.part! << removelist.homemachine
i am just trying to get rid of a bunch of partial files

Last edited by mrmnemo; 03-25-2010 at 02:27 PM.
 
Old 03-25-2010, 03:07 PM   #2
Vrajgh
Member
 
Registered: Aug 2005
Posts: 68

Rep: Reputation: 33
The particular commands you have provided won't help you very much. As far as I can tell from find's man page, it doesn't have a -R option. Also you seem to be trying to do something strange with rm - giving it a wildcard argument is fine but it doesn't read files to be removed from stdin.

I suggest you read this page which google found for me:
http://www.cyberciti.biz/faq/linux-u...-remove-files/

Post back here if you need more help. May I suggest that you fill a temporary directory with files and test your command first, or at least make sure find is finding the correct files before adding rm to the command line. Running scripts or commands with rm in them when you aren't sure exactly what they do can land you in all sorts of trouble!
 
Old 03-25-2010, 03:28 PM   #3
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
thanmks man. you know your the first to suggest a temp file b4 running anything against a real directory. cant believe i didnt think of that. thanks again.

EDIT: find -R is supposed do a recursive search i thought.
 
Old 03-25-2010, 08:42 PM   #4
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
i ended up just using rm -r with a wild card as i could not get find to perom the job correctly. thanks again
 
  


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
bash question...... budword Linux - Software 4 07-29-2007 03:01 AM
Bash Question krock923 Programming 4 06-28-2006 11:16 AM
A question about BASH operand Linux - Newbie 2 11-27-2005 10:49 PM
Bash question lnxduck Programming 3 09-30-2005 09:50 AM
a bash question thanhVic Linux - General 2 02-05-2005 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration