[opensuse] remove files

2007-03-07 Thread Vince Oliver
Hi All, How to easily remove some particular files from more than one directory. For example I have directories: $ ls -l total 12 drwx--+ 2 ovince None 0 Mar 6 16:36 DHbox1 drwx--+ 2 ovince None 0 Mar 7 08:30 DHbox10 drwx--+ 2 ovince None 0 Mar 6 16:36 DHbox2

Re: [opensuse] remove files

2007-03-07 Thread Sylvester Lykkehus
Vince Oliver wrote: Hi All, How to easily remove some particular files from more than one directory. For example I have directories: $ ls -l total 12 drwx--+ 2 ovince None 0 Mar 6 16:36 DHbox1 drwx--+ 2 ovince None 0 Mar 7 08:30 DHbox10 drwx--+ 2 ovince None 0

Re: [opensuse] remove files

2007-03-07 Thread Gordon Ross
On 07 March 2007 at 10:49, in message [EMAIL PROTECTED], Sylvester Lykkehus [EMAIL PROTECTED] wrote: Vince Oliver wrote: Hi All, How to easily remove some particular files from more than one directory. For example I have directories: $ ls -l total 12 drwx--+ 2 ovince None 0

Re: [opensuse] remove files

2007-03-07 Thread Philippe Andersson
Gordon Ross wrote: On 07 March 2007 at 10:49, in message [EMAIL PROTECTED], Sylvester Lykkehus [EMAIL PROTECTED] wrote: Vince Oliver wrote: Hi All, How to easily remove some particular files from more than one directory. For example I have directories: $ ls -l total 12 drwx--+ 2

Re: [opensuse] remove files

2007-03-07 Thread Vince Oliver
thanks for reply. trick works :) May I ask you for one more trick? How to remove ALL files from directories EXCEPT '*.pro'? Many thanks Sylvester On Wed, 7 Mar 2007, Sylvester Lykkehus wrote: Vince Oliver wrote: Hi All, How to easily remove some particular files from more than one

Re: [opensuse] remove files

2007-03-07 Thread Philippe Andersson
Vince Oliver wrote: thanks for reply. trick works :) May I ask you for one more trick? How to remove ALL files from directories EXCEPT '*.pro'? $ find DHbox* -type f -not -name *.pro -exec rm -f {} \; Beware that find will recurse any directory below your DHbox*. Make sure that's what you

Re: [opensuse] remove files

2007-03-07 Thread JB
On 07 March 07 05:29, Vince Oliver wrote: snip Vince, please don't top-post. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [opensuse] remove files

2007-03-07 Thread Randall R Schulz
On Wednesday 07 March 2007 03:12, Philippe Andersson wrote: Gordon Ross wrote: ... $ find DHbox* -name *.dat -o -name *.pro -exec rm -f {} \; would do. Omit the final -exec... to first check that it only catches those files you want to get rid of. If there are very many such files, execing

Re: [opensuse] remove files

2007-03-07 Thread Steve Beattie
On Wed, Mar 07, 2007 at 08:01:10AM -0800, Randall R Schulz wrote: On Wednesday 07 March 2007 03:12, Philippe Andersson wrote: Gordon Ross wrote: ... $ find DHbox* -name *.dat -o -name *.pro -exec rm -f {} \; would do. Omit the final -exec... to first check that it only catches those