On Fri, 2002-07-12 at 13:13, Joe Nestlerode wrote:
> I'm trying to write a simple script to search a directory tree for a 
> file pattern (specified as an argument with a wildcard, ie, testfile* or 
> *.jpg), and then delete matching files after first prompting the user 
> for a y/n. (yes=delete, no=don't delete, find the next match)

Try

for i in `find . -name '*.jpg'`; do rm -i $i;done

Those are reverse quotes.




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

Reply via email to