On Fri, 2002-07-12 at 15:56, Joe Nestlerode wrote:
> Thank you, that works beautifully.  I modified it slightly to allow a 
> user to enter a search pattern on the command line, to wit:
> 
> #!/bin/sh
> 
> echo -e "Enter a file or pattern to search for...\n"
> read file
> 
> for i in `find . -name "$file"`
>   do rm -i $i
> done
> 
> exit 0

You might want to use -iname, instead of -name, to do a case-insensitive
search. This is useful if the user has a Windows background, where they
are not used to file names being case sensitive.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to