[449] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Finding all the coredumps: freeing 25MB of space.

daemon@ATHENA.MIT.EDU (Andreas Kostyrka)
Tue Oct 22 17:04:23 1996

Date: Mon, 21 Oct 1996 20:45:17 +0200 (MET DST)
From: Andreas Kostyrka <andreas@ag.or.at>
To: David Fox <fox@graphics.cs.nyu.edu>
cc: redhat-list@redhat.com
In-Reply-To: <y5aenj8jhg2.fsf@hoopla.cs.nyu.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On 9 Oct 1996, David Fox wrote:

> There's also a directory named core in the kernel source.
What about:

find / -name core 2>/dev/null |
xargs file |
awk -F: ' /core file,/ { print $1 } ' |
xargs rm

You could probably make the search key in awk even more precise :)

Andreas
P.S.: problems with this: consider file names with : in them :(


--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post