Re: find command for <number>.out files?

From: Daryl.Mitchell@us.o-i.com
Date: Wed May 18 2005 - 16:30:24 EDT


Many suggestions are for wildcards like '[0-9]*.out', however that will
match '7critical.out' and '123DeleteThisAndYourFired.out' , etc.. Seems
there's no absolute safe way to do this...unless I use PERL. =)

Thanks for the many replies.
Daryl

                                                                           
             Daryl.Mitchell@us
             .o-i.com
             Sent by: To
             sunmanagers-bounc sunmanagers@sunmanagers.org
             es@sunmanagers.or cc
             g
                                                                   Subject
                                       find command for <number>.out
             05/18/2005 03:42 files?
             PM
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           

Sorry for the 'less than critical' question, but here goes:

I need to find and eliminate all files that are named <string of
numbers>.out . For example:

/appls/dbs/jobserv/tolprod01/16287.out
/appls/dbs/jobserv/tolprod01/6576.out
/appls/dbs/jobserv/tolprod01/521.out

So find (with xargs) comes to mind, but how do I match a filename with a
varying length of numbers (and numbers only) as above?

-name '[0-9].out' <-matches only 1 number like 5.out

Thanks
Daryl
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:44 EDT