[ale] Recursive script help

Geoffrey esoteric at 3times25.net
Fri May 3 10:28:39 EDT 2002




Gary MacKay wrote:
> Is there a command that will delete all files, such as *.xyz or
> whatever,  in the current directory and all subdirectories below it?

find . -name '*.xyz' -print |xargs rm -f

Just be sure the metacharacter '*' is going to match only what you 
expect to remove. :)

> 
> I can make a script with a "for" loop to get the current and one layer
> down, but how do I keep going to _all_ subdirs of subdirs of...? Is
> there a single command or is a script required?
> 
> 
> - Gary
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
> 
> 


-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list