Alan - Vox
06-23-2002, 05:57 PM
Anyone know how to do this, i need to delete every file that grep finds.
![]() | View Full Version : Urgent: Delete files outputed by grep Alan - Vox 06-23-2002, 05:57 PM Anyone know how to do this, i need to delete every file that grep finds. leat 06-23-2002, 06:44 PM Try the -l option for grep and pipe it to xargs. grep -l PATTERN *|xargs rm -f /len ffeingol 06-23-2002, 06:56 PM or find {your find stuff here} -exec rm {} \; Frank |