Delete program core file in bash script -


i'm trying delete core file generated when program crashes.

for use piece of code:

find . -name 'core' -delete 

my question is: correct way of doing ? there better , more efficient way ?

thanks!

if indeed want delete core file, can use:

find . -name "core*" -exec rm -f {} \; 

note: [including semicolon]


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -