<?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>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Recursively symlinking files</title>
		<link>http://pario.no/2012/02/02/recursively-symlinking-files/</link>
		<comments>http://pario.no/2012/02/02/recursively-symlinking-files/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 22:56:50 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[ln]]></category>
		<category><![CDATA[symlink]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1693</guid>
		<description><![CDATA[This is a short script I use to symlink all my JPG image files on my file server to a flat folder accessible to my DLNA enabled devices. My files are organized in year folders and under each year there are month folders: -2011 --2011-01 --2011-02 --2011-03 ... -2012 --2012-01 I avoid duplicate symlinks by [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short script I use to symlink all my JPG image files on my file server to a flat folder accessible to my DLNA enabled devices.<br />
My files are organized in year folders and under each year there are month folders:</p>
<pre>
-2011
--2011-01
--2011-02
--2011-03
...
-2012
--2012-01</pre>
<p>I avoid duplicate symlinks by using file names like 20110102-1234_DSC&#8230;JPG or YYYYMMDD-HHMM_OriginalFileName.JPG</p>
<p>The script looks like this</p>
<pre>
#!/bin/bash 

SRC="/media/Images"
DEST="/media/SymlinkTarget"

# Create a symlink under $DEST for each JPG file under $SRC
find $SRC -type f | grep -i jpg | while read PATHNAME; do
        NEW="$DEST";
        echo "$NEW";
        ln -s "$PATHNAME" "$NEW";
done</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 = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDIvMDIvcmVjdXJzaXZlbHktc3ltbGlua2luZy1maWxlcy88d3B0Yj5SZWN1cnNpdmVseSBzeW1saW5raW5nIGZpbGVzPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/02/02/recursively-symlinking-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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' {} \;]]></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]]></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>
	</channel>
</rss>

