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
Post a Comment