Link to home
Start Free TrialLog in
Avatar of m0nk3yza
m0nk3yzaFlag for South Africa

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
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial