<?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>Pario TechnoBlob &#187; find</title>
	<atom:link href="http://pario.no/tag/find/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Wed, 14 Jul 2010 12:12:31 +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>Rename files in a folder to lower-case using perl</title>
		<link>http://pario.no/2008/10/13/rename-files-in-a-folder-to-lower-case-using-perl/</link>
		<comments>http://pario.no/2008/10/13/rename-files-in-a-folder-to-lower-case-using-perl/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 08:12:40 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[rename]]></category>

		<guid isPermaLink="false">http://pario.no/?p=751</guid>
		<description><![CDATA[This is a simple oneliner to rename files to lower-case using perl # perl -e 'rename($_, lc) &#124;&#124; warn "$_: $!\n" for @ARGV' * You can also do this recusively using find and perl # find . -type f -exec perl -e 'rename($_, lc) &#124;&#124; warn "$_: $!\n" for @ARGV' {} \; var wordpress_toolbar_urls = [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple oneliner to rename files to lower-case using perl</p>
<pre>
# perl -e 'rename($_, lc) || warn "$_: $!\n" for @ARGV' *</pre>
<p>You can also do this recusively using find and perl</p>
<pre>
# find . -type f -exec perl -e 'rename($_, lc) || warn "$_: $!\n" for @ARGV' {} \;</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMTAvMTMvcmVuYW1lLWZpbGVzLWluLWEtZm9sZGVyLXRvLWxvd2VyLWNhc2UtdXNpbmctcGVybC88d3B0Yj5SZW5hbWUgZmlsZXMgaW4gYSBmb2xkZXIgdG8gbG93ZXItY2FzZSB1c2luZyBwZXJsPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/10/13/rename-files-in-a-folder-to-lower-case-using-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grep recursively through subdirectories</title>
		<link>http://pario.no/2007/11/01/grep-recursively-through-subdirectories/</link>
		<comments>http://pario.no/2007/11/01/grep-recursively-through-subdirectories/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 13:54:16 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://pario.no/2007/11/01/grep-recursively-through-subdirectories/</guid>
		<description><![CDATA[grep recursively through subdirectories for files that match a specific pattern: grep -l -r –include=*.doc regex * The equivalent command unsing find: find . -name ‘*.doc’ -exec grep -l regex \{\} \; The option after grep is the lowercase letter L, not the number 1). Remove the -l to see the actual matches instead of [...]]]></description>
			<content:encoded><![CDATA[<p>grep recursively through subdirectories for files that match a specific pattern:</p>
<pre>
grep -l -r –include=*.doc regex *</pre>
</p>
<p>The equivalent command unsing find:</p>
<pre>
find . -name ‘*.doc’ -exec grep -l regex \{\} \;</pre>
</p>
<p>The option after grep is the lowercase letter L, not the number 1).<br />
Remove the -l to see the actual matches instead of the file names.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTEvMDEvZ3JlcC1yZWN1cnNpdmVseS10aHJvdWdoLXN1YmRpcmVjdG9yaWVzLzx3cHRiPkdyZXAgcmVjdXJzaXZlbHkgdGhyb3VnaCBzdWJkaXJlY3Rvcmllczx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/11/01/grep-recursively-through-subdirectories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find files not readable by all (useful for web site)</title>
		<link>http://pario.no/2007/06/09/find-files-not-readable-by-all-useful-for-web-site/</link>
		<comments>http://pario.no/2007/06/09/find-files-not-readable-by-all-useful-for-web-site/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 23:52:21 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/06/09/find-files-not-readable-by-all-useful-for-web-site/</guid>
		<description><![CDATA[find -type f ! -perm -444 var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDYvMDkvZmluZC1maWxlcy1ub3QtcmVhZGFibGUtYnktYWxsLXVzZWZ1bC1mb3Itd2ViLXNpdGUvPHdwdGI%2BRmluZCBmaWxlcyBub3QgcmVhZGFibGUgYnkgYWxsICh1c2VmdWwgZm9yIHdlYiBzaXRlKTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";]]></description>
			<content:encoded><![CDATA[<pre>
find -type f ! -perm -444</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDYvMDkvZmluZC1maWxlcy1ub3QtcmVhZGFibGUtYnktYWxsLXVzZWZ1bC1mb3Itd2ViLXNpdGUvPHdwdGI%2BRmluZCBmaWxlcyBub3QgcmVhZGFibGUgYnkgYWxsICh1c2VmdWwgZm9yIHdlYiBzaXRlKTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/06/09/find-files-not-readable-by-all-useful-for-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fikse rett dato på bildefil ut i fra EXIF info</title>
		<link>http://pario.no/2007/05/18/fikse-rett-dato-pa-bildefil-ut-i-fra-exif-info/</link>
		<comments>http://pario.no/2007/05/18/fikse-rett-dato-pa-bildefil-ut-i-fra-exif-info/#comments</comments>
		<pubDate>Fri, 18 May 2007 19:06:35 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[jhead]]></category>
		<category><![CDATA[JPG]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/18/fikse-rett-dato-pa-bildefil-ut-i-fra-exif-info/</guid>
		<description><![CDATA[Av og til kopierer man bilder og da kan det hende bildefila får feil dato og tid for når bildet ble tatt. Kjør dette scriptet er for å rette dette igjen find . -name *.JPG -exec jhead -ft {} \; Kommandoen find søker recursivt alle filer som ender på JPG fra den katalogen du står [...]]]></description>
			<content:encoded><![CDATA[<p>Av og til kopierer man bilder og da kan det hende bildefila får feil dato og tid for når bildet ble tatt. Kjør dette scriptet er for å rette dette igjen<br />
<span id="more-205"></span></p>
<pre>find . -name *.JPG -exec jhead -ft {} \;</pre>
<p>Kommandoen <strong>find</strong> søker recursivt alle filer som ender på JPG fra den katalogen du står i og kjører <strong>jhead</strong> kommandoen på de.</p>
<p><strong>jhead</strong> henter dato og tid hentes fra EXIF infoen i bildet.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMTgvZmlrc2UtcmV0dC1kYXRvLXBhLWJpbGRlZmlsLXV0LWktZnJhLWV4aWYtaW5mby88d3B0Yj5GaWtzZSByZXR0IGRhdG8gcMOlIGJpbGRlZmlsIHV0IGkgZnJhIEVYSUYgaW5mbzx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/18/fikse-rett-dato-pa-bildefil-ut-i-fra-exif-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete files older than x days</title>
		<link>http://pario.no/2007/05/18/delete-files-older-than-x-days/</link>
		<comments>http://pario.no/2007/05/18/delete-files-older-than-x-days/#comments</comments>
		<pubDate>Fri, 18 May 2007 14:33:28 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/18/slette-filer-som-er-eldre-enn-x-dager/</guid>
		<description><![CDATA[find /data/folder -type f -ctime +60 -exec /bin/rm {} \; -type f : regular file -ctime : File&#8217;s status was last changed n*24 hours ago. Add -uid 400 if you would like to delete the files to user with uid 400. var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMTgvZGVsZXRlLWZpbGVzLW9sZGVyLXRoYW4teC1kYXlzLzx3cHRiPkRlbGV0ZSBmaWxlcyBvbGRlciB0aGFuIHggZGF5czx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";]]></description>
			<content:encoded><![CDATA[<pre>
find /data/folder -type f -ctime +60 -exec /bin/rm {} \;</pre>
<p><span id="more-204"></span><br />
-type f : regular file<br />
-ctime : File&#8217;s  status  was last changed n*24 hours ago.</p>
<p>Add <strong>-uid 400</strong> if you would like to delete the files to user with uid 400.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMTgvZGVsZXRlLWZpbGVzLW9sZGVyLXRoYW4teC1kYXlzLzx3cHRiPkRlbGV0ZSBmaWxlcyBvbGRlciB0aGFuIHggZGF5czx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/18/delete-files-older-than-x-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
