<?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>Rich Sae Kang &#187; linux</title>
	<atom:link href="http://rich.saekang.co.uk/c/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://rich.saekang.co.uk</link>
	<description>Every other fucker has one, guess it's time to join in</description>
	<lastBuildDate>Tue, 27 Oct 2009 02:49:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>svn recursive add keywords</title>
		<link>http://rich.saekang.co.uk/a/12</link>
		<comments>http://rich.saekang.co.uk/a/12#comments</comments>
		<pubDate>Tue, 24 Jul 2007 16:04:43 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.saekang.co.uk/stuff/2007/07/24/svn-recursive-add-keywords/</guid>
		<description><![CDATA[find ./ -name '*.html' -or -name '*.php' \-print0 &#124; xargs -0 svn propset svn:keywords Id
edit: quick correction, thanks Lukas
]]></description>
			<content:encoded><![CDATA[<pre><pre class="bash"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> .<span style="color: #000000; font-weight: bold;">/</span> -name <span style="color: #ff0000;">'*.html'</span> -or -name <span style="color: #ff0000;">'*.php'</span> \</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">-print0 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #000000;">-0</span> svn propset svn:keywords Id</div></li></ol></pre></pre>
<p>edit: quick correction, thanks Lukas</p>
]]></content:encoded>
			<wfw:commentRss>http://rich.saekang.co.uk/a/12/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>centos virt-install</title>
		<link>http://rich.saekang.co.uk/a/11</link>
		<comments>http://rich.saekang.co.uk/a/11#comments</comments>
		<pubDate>Mon, 11 Jun 2007 09:05:07 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[servers etc]]></category>

		<guid isPermaLink="false">http://www.saekang.co.uk/stuff/2007/06/11/centos-virt-install/</guid>
		<description><![CDATA[virt-install --name=mysql --ram=512 --vcpus=1 \--file=/dev/mapper/CC-xen--mysql \--paravirt \--location=http://rich-desktop/Centos_5/
]]></description>
			<content:encoded><![CDATA[<p><pre class="bash"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">virt-install --<span style="color: #007800;">name=</span>mysql --<span style="color: #007800;">ram=</span><span style="color: #000000;">512</span> --<span style="color: #007800;">vcpus=</span><span style="color: #000000;">1</span> \</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">--<span style="color: #007800;">file=</span><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>CC-xen--mysql \</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">--paravirt \</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">--<span style="color: #007800;">location=</span>http:<span style="color: #000000; font-weight: bold;">//</span>rich-desktop<span style="color: #000000; font-weight: bold;">/</span>Centos_5<span style="color: #000000; font-weight: bold;">/</span></div></li></ol></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://rich.saekang.co.uk/a/11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>recursive search and replace</title>
		<link>http://rich.saekang.co.uk/a/9</link>
		<comments>http://rich.saekang.co.uk/a/9#comments</comments>
		<pubDate>Tue, 13 Feb 2007 12:21:58 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.saekang.co.uk/stuff/2007/02/13/recursive-search-and-replace/</guid>
		<description><![CDATA[find . -type f &#124; xargs sed -c -ibak 's/search/replace/'
or
find . -type f &#124; xargs perl -pi~ -e  's/s_show_nofity/s_show_notify/g;'
]]></description>
			<content:encoded><![CDATA[<p><pre class="bash"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> . -type 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;">sed</span> -c -ibak <span style="color: #ff0000;">'s/search/replace/'</span></div></li></ol></pre><br />
or<br />
<pre class="bash"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> . -type 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;">perl</span> -pi~ -e  <span style="color: #ff0000;">'s/s_show_nofity/s_show_notify/g;'</span></div></li></ol></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://rich.saekang.co.uk/a/9/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thumbnail with imagemagick</title>
		<link>http://rich.saekang.co.uk/a/8</link>
		<comments>http://rich.saekang.co.uk/a/8#comments</comments>
		<pubDate>Mon, 08 Jan 2007 17:08:24 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.saekang.co.uk/stuff/2007/01/08/8/</guid>
		<description><![CDATA[for i in *.tif;do convert blank320x240.png $i -auto-orient -resize 320x240 \-colorspace RGB -compose Src -gravity center -composite $i.jpg;done
]]></description>
			<content:encoded><![CDATA[<pre><pre class="php"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #b1b100;">for</span> i in <span style="color: #339933;">*.</span>tif<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #b1b100;">do</span> convert blank320x240<span style="color: #339933;">.</span>png <span style="color: #000033;">$i</span> <span style="color: #339933;">-</span>auto<span style="color: #339933;">-</span>orient <span style="color: #339933;">-</span>resize 320x240 \</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #339933;">-</span>colorspace RGB <span style="color: #339933;">-</span>compose Src <span style="color: #339933;">-</span>gravity center <span style="color: #339933;">-</span>composite <span style="color: #000033;">$i</span><span style="color: #339933;">.</span>jpg<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">done</div></li></ol></pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://rich.saekang.co.uk/a/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux find examples</title>
		<link>http://rich.saekang.co.uk/a/5</link>
		<comments>http://rich.saekang.co.uk/a/5#comments</comments>
		<pubDate>Fri, 05 Jan 2007 01:09:02 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.saekang.co.uk/stuff/2007/01/05/linux-find-examples/</guid>
		<description><![CDATA[
#find all files under /dir older than 7 days, and deletefind /dir -type f -mtime +7 &#124; xargs rm -f#find all files newer than FILE, and deletefind /dir -type f -newer /path/to/FILE -exec rm \&#123;\&#125; \;#find all files older than 10 minutes, and print names(print is default)find /dir -type f -mmin +10 -print#find all files [...]]]></description>
			<content:encoded><![CDATA[<pre>
<pre class="bash"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">#find all files under /dir older than 7 days, and delete</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> -type f -mtime <span style="color: #000000;">+7</span> <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> -f</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">#find all files newer than FILE, and delete</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> -type f -newer <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>FILE -exec <span style="color: #c20cb9; font-weight: bold;">rm</span> \<span style="color: #7a0874; font-weight: bold;">&#123;</span>\<span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</div></li><li style="font-weight: bold;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">#find all files older than 10 minutes, and print names(print is default)</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> -type f -mmin <span style="color: #000000;">+10</span> -print</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">#find all files newer than 1 day, and tar them to file.tar</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> -type f -mtime <span style="color: #000000;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> -c -T - -f <span style="color: #c20cb9; font-weight: bold;">file</span>.<span style="color: #c20cb9; font-weight: bold;">tar</span></div></li></ol></pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://rich.saekang.co.uk/a/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
