Re: shell commands - exclusion

2009-02-08 Thread Jonathan McKeown
On Friday 06 February 2009 02:55, Chris Whitehouse wrote: I think you should be able to do it with a combination of -prune and -delete (or -exec rm -rf {} \; ) on a find command. Substitute your other commands for rm -rf in the -exec above. I would give you a working example except I can't

Re: shell commands - exclusion

2009-02-08 Thread Chris Whitehouse
Jonathan McKeown wrote: On Friday 06 February 2009 02:55, Chris Whitehouse wrote: I think you should be able to do it with a combination of -prune and -delete (or -exec rm -rf {} \; ) on a find command. Substitute your other commands for rm -rf in the -exec above. I would give you a working

Re: shell commands - exclusion

2009-02-05 Thread Chris Whitehouse
Jaime wrote: On Wed, Feb 4, 2009 at 9:35 AM, t-u-t marshc...@gmail.com wrote: if i have say one (or even two) single file/directories among many others, and i want to perform any said function like cp, mv, rm, etc.. , to all other files except that one or two, is there a way to do that in a

Re: shell commands - exclusion

2009-02-05 Thread Paul Procacci
Chris Whitehouse wrote: Jaime wrote: On Wed, Feb 4, 2009 at 9:35 AM, t-u-t marshc...@gmail.com wrote: if i have say one (or even two) single file/directories among many others, and i want to perform any said function like cp, mv, rm, etc.. , to all other files except that one or two, is there

shell commands - exclusion

2009-02-04 Thread t-u-t
hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any said function like cp, mv, rm, etc.. , to all other files

Re: shell commands - exclusion

2009-02-04 Thread Lars Eighner
On Wed, 4 Feb 2009, t-u-t wrote: hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any said function like cp, mv,

Re: shell commands - exclusion

2009-02-04 Thread Dan Nelson
In the last episode (Feb 04), t-u-t said: hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any said function

Re: shell commands - exclusion

2009-02-04 Thread t-u-t
On Wed, Feb 4, 2009 at 4:26 PM, Lars Eighner luvbeas...@larseighner.comwrote: In general this is not possible. A few commands have exclusion options, but not many. Some shells have ways of managing glob exclusion (it's the shell that expands wildcard patterns). Setting GLOBIGNORE works in

Re: shell commands - exclusion

2009-02-04 Thread t-u-t
On Wed, Feb 4, 2009 at 4:48 PM, Dan Nelson dnel...@allantgroup.com wrote: zsh has the ^ and ~ glob metacharacters that are enabled with you enable EXTENDED_GLOB: ^x (Requires EXTENDED_GLOB to be set.) Matches anything except the pattern x. This has a higher

Re: shell commands - exclusion

2009-02-04 Thread Roland Smith
On Wed, Feb 04, 2009 at 03:35:52PM +0100, t-u-t wrote: hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any

Re: shell commands - exclusion

2009-02-04 Thread Jaime
On Wed, Feb 4, 2009 at 9:35 AM, t-u-t marshc...@gmail.com wrote: if i have say one (or even two) single file/directories among many others, and i want to perform any said function like cp, mv, rm, etc.. , to all other files except that one or two, is there a way to do that in a single command?

Re: shell commands - exclusion

2009-02-04 Thread William Gordon Rutherdale
Lars Eighner wrote: On Wed, 4 Feb 2009, t-u-t wrote: hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any