<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pydev: o pythonie... po polsku &#187; bash</title>
	<atom:link href="http://pydev.pl/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://pydev.pl</link>
	<description>Kolejny blog o życiu programisty</description>
	<lastBuildDate>Tue, 15 Dec 2009 23:06:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Usuwanie plików w Linuxie</title>
		<link>http://pydev.pl/2009/08/22/usuwanie-plikow-w-linuxie/</link>
		<comments>http://pydev.pl/2009/08/22/usuwanie-plikow-w-linuxie/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 16:56:21 +0000</pubDate>
		<dc:creator>Krzysiek</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[pipe]]></category>

		<guid isPermaLink="false">http://pydev.pl/?p=10</guid>
		<description><![CDATA[O boju z dużą ilością plików do skasowania.]]></description>
			<content:encoded><![CDATA[<p>Ostatnio miałem nietypowy problem&#8230; Musiałem usunąć katalog (cache)  wraz z zawartością niby nic trudnego</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> cache</pre></div></div>

<p>albo</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> cache<span style="color: #000000; font-weight: bold;">/*</span></pre></div></div>

<p>i po sprawie&#8230; otóż nic bardziej mylnego, po parunastu minutach wiszenia procesu po prostu go musiałem ubić.<br />
Nie wiem jaka była ilość plików w katalogu, ale zgromadzone były w nim nie wiedzieć czemu cache&#8217;e z paroletniej działalności jednego z CMS, którego nazwy nie będę wymieniał.</p>
<p>Rozwiązanie przyszło mi do głowy dopiero po paru minutach:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-type</span> f <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">rm</span></pre></div></div>

<p>i po sprawie w zaledwie kilka minut problem się rozwiązał.</p>
<!-- start of reCAPTCHA form -->
<script type="text/javascript">
var RecaptchaOptions = {
theme: 'white',
lang: 'en'
};
</script>
<noscript>&nbsp;</noscript>
<form method="post" action="/tag/bash/feed/">
<fieldset class="recaptcha_form_fieldset">
<p class="recaptcha_form_p">Your Name:<br /><label for="recaptcha_form_name"><input type="text" id="recaptcha_form_name" name="recaptcha_form_name" value="" class="recaptcha_form_input" /></label></p>
<p class="recaptcha_form_p">Your Email Address:<br /><label for="recaptcha_form_email"><input type="text" id="recaptcha_form_email" name="recaptcha_form_email" value="" class="recaptcha_form_input" /></label></p>
<p class="recaptcha_form_p">Your Message:<br /><label for="recaptcha_form_message"><textarea id="recaptcha_form_message" name="recaptcha_form_message" rows="10" cols="20" class="recaptcha_form_textarea"></textarea></label></p>
<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LcZ8QcAAAAAACA44ZMEgFA6GW1QRTXLnMduDTlA"></script>
<noscript>
<div id="gatt_design_recaptcha_plugin">
<object data="http://api.recaptcha.net/noscript?k=6LcZ8QcAAAAAACA44ZMEgFA6GW1QRTXLnMduDTlA" type="text/html" id="gatt_design_recaptcha_plugin_object" class="recaptcha_form_captcha_box">
<!--[if IE]>
<object classid="clsid:235336920-03F9-11CF-8FD0-00AA00686F13" data="http://api.recaptcha.net/noscript?k=6LcZ8QcAAAAAACA44ZMEgFA6GW1QRTXLnMduDTlA" type="text/html" id="gatt_design_recaptcha_plugin_object" class="recaptcha_form_captcha_box">
<p>&nbsp;</p>
</object>
<![endif]-->
<p>&nbsp;</p>
</object>
</div>
<br />
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge" />
</noscript>
<br />
<p class="recaptcha_form_p"><input type="submit" name="recaptcha_client" value="Submit" /></p>
</fieldset>
</form>
<!-- end of reCAPTCHA form -->

]]></content:encoded>
			<wfw:commentRss>http://pydev.pl/2009/08/22/usuwanie-plikow-w-linuxie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
