<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Question of the Day - 19 Sept. 2007</title>
	<atom:link href="http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/</link>
	<description></description>
	<pubDate>Sun, 06 Jul 2008 00:40:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Bruce</title>
		<link>http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/#comment-441</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 24 Sep 2007 20:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/#comment-441</guid>
		<description>Yeah, I considered that but "went literal" on the problem.

One small nit (and we are talking really, really small) is that -atime +3 looks for *greater* than 3 days so to get an inclusion of *exactly* three days I inverted the whole thing.  :)</description>
		<content:encoded><![CDATA[<p>Yeah, I considered that but &#8220;went literal&#8221; on the problem.</p>
<p>One small nit (and we are talking really, really small) is that -atime +3 looks for *greater* than 3 days so to get an inclusion of *exactly* three days I inverted the whole thing.  <img src='http://linuxbraindump.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hieronymus</title>
		<link>http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/#comment-436</link>
		<dc:creator>Hieronymus</dc:creator>
		<pubDate>Sun, 23 Sep 2007 14:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/#comment-436</guid>
		<description>Yup, that's an excellent solution. I would change the -name thusly:

'(' -name core -o name 'core.[0-0]*' ')'

This picks up both 'core' files and core.nnnn files, which are often also generated by appending the PID (see /proc/sys/kernel/core_pattern and man core(5) for more). Also, -atime +3 checks for files that haven't been accessed in 3 days.

And yes, escaping the -exec command in find is a gnarly thing, something I can never keep straight!</description>
		<content:encoded><![CDATA[<p>Yup, that&#8217;s an excellent solution. I would change the -name thusly:</p>
<p>&#8216;(&#8217; -name core -o name &#8216;core.[0-0]*&#8217; &#8216;)&#8217;</p>
<p>This picks up both &#8216;core&#8217; files and core.nnnn files, which are often also generated by appending the PID (see /proc/sys/kernel/core_pattern and man core(5) for more). Also, -atime +3 checks for files that haven&#8217;t been accessed in 3 days.</p>
<p>And yes, escaping the -exec command in find is a gnarly thing, something I can never keep straight!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/#comment-426</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Fri, 21 Sep 2007 23:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://linuxbraindump.org/2007/09/19/question-of-the-day-19-sept-2007/#comment-426</guid>
		<description>Depends on what you mean by "touched", but something like:
find ~ -name core -type f ! -atime -3 -exec rm -f {} \;

should work for everything from $HOME on down.

Depending on your shell you may need to escape certain things.</description>
		<content:encoded><![CDATA[<p>Depends on what you mean by &#8220;touched&#8221;, but something like:<br />
find ~ -name core -type f ! -atime -3 -exec rm -f {} \;</p>
<p>should work for everything from $HOME on down.</p>
<p>Depending on your shell you may need to escape certain things.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.207 seconds -->
