DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Stef's picture

Unregistered

Feeds

aliases

  • Stef

Stef

8 months ago

in Find and delete all core files | UNIX | Tech-Recipes on Tech-Recipes
sparkomemphis on http://ncaabbs.com/showthread.php?tid=229890 has this example that will help prevent removing non-core files named (lets not argue that there should not be any of these) core.

find . -name core\* -user $USER -type f -size +1000000c -exec file {} \; -exec ls -l {} \; -exec printf "\n\ny to remove this core file\n" \; -exec /bin/rm -i {} \;
1 reply
Quinn McHenry's picture
Quinn McHenry I like that! Nice bit of code. Thanks for sharing!
Returning? Login