Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search & destroy/delete

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
this command seems to be not working in my system (aix 4,2.x). i want to get rid of all "*.zzz" files starting from /.

# find / -name "*.zzz" -exec rm {} ;
find: 0652-018 An expression term lacks a required parameter.


thanks.
 
I believe you need a "\" before the ";" at the end of the command.
 
alray is absolutely right - just make sure that you maintain the space after the closing curly bracket..

find / -name '*.zzz' -exec rm {} \; -print

Obviously ignore the -print if you dont want it!

Cheers,
Dave V.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top