m0nk3yza
asked on
Removing certain files from a directory
Hi All,
We run a SunOS 5.8 server.
One directory has about 8000 files, which are all similarly named.
About 1/3 of those files need to be removed.
I need to search inside each file, find a certain phrase/patern and delete those files that contain that phrase.
Is there a script or command that will achieve this.
Please help.
Regards,
Jo
We run a SunOS 5.8 server.
One directory has about 8000 files, which are all similarly named.
About 1/3 of those files need to be removed.
I need to search inside each file, find a certain phrase/patern and delete those files that contain that phrase.
Is there a script or command that will achieve this.
Please help.
Regards,
Jo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.