Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Need help with rm command
Jayson
post Jan 3 2012, 02:11 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 3-January 12
Member No.: 15,802



Hello,

Just started using Red Hat Linux at work for our Magma 5 program and once a month we archive our files.

This usually takes me 3 to 5 hours going through each directory and putting files on a disc to burn them,

My question is.

Is there anyway to use rm command to delete the files not needed when we do our backups so I'm not having to go through each directory and manually delete the files before moving the directory onto a disk to burn?

I tried something like this

find * -maxdepth 0 -name 'ProjectDB' -name '*.dbs' -name '*.db' -name '*.geo' -name 'stl\ files' -prune -o -exec rm -rf '{}' ';'

but as you can guess it's deleting everything in the directory even the files and folders I want to keep.

Thanks for you help.
Go to the top of the page
 
+Quote Post
michaelk
post Jan 17 2012, 07:05 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



This might help
http://www.cyberciti.biz/faq/linux-unix-ho...d-remove-files/
Go to the top of the page
 
+Quote Post
VeTRooTJef
post Mar 8 2012, 05:18 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 16-January 12
Member No.: 16,130



Rather useful message


--------------------
http://FunMoviesow.multiply.com/profile - My blog
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2017 - 02:40 AM