<?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>Web Oom &#187; find</title>
	<atom:link href="http://web.pyncus.com/tag/find/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.pyncus.com</link>
	<description>Build and Share Web Technology</description>
	<lastBuildDate>Mon, 25 Jan 2010 18:19:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Find word in a string (Python)</title>
		<link>http://web.pyncus.com/2009/12/22/find-word-in-a-string-python/</link>
		<comments>http://web.pyncus.com/2009/12/22/find-word-in-a-string-python/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 19:36:21 +0000</pubDate>
		<dc:creator>weboom</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://web.pyncus.com/?p=568</guid>
		<description><![CDATA[When you want to find a word in a string, use find() e.g. import sys arg1 = sys.argv[1] # passing the first argument if arg1.find("off") == -1: # if arg1 does not contain "off" # do something else: # do something]]></description>
			<content:encoded><![CDATA[<p>When you want to find a word in a string, use find()</p>
<p>e.g.</p>
<pre>
<p>import sys<br />
arg1 = sys.argv[1] # passing the first argument</p>
<p>if arg1.find("off") == -1: # if arg1 does not contain "off"<br />
  # do something<br />
else:<br />
  # do something</p>
]]></content:encoded>
			<wfw:commentRss>http://web.pyncus.com/2009/12/22/find-word-in-a-string-python/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Powerful find</title>
		<link>http://web.pyncus.com/2009/06/18/powerful-find/</link>
		<comments>http://web.pyncus.com/2009/06/18/powerful-find/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 23:03:35 +0000</pubDate>
		<dc:creator>weboom</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://weboom.wordpress.com/?p=3</guid>
		<description><![CDATA[In linux and unix, find command is very powerful command the reasons are (from my opinions) 1. in linux, unix, every configurations are done in text 2. if you know some strings, you may want to find a file containing those strings 3. this will be extremely helpful when you work with linux system $find <a href='http://web.pyncus.com/2009/06/18/powerful-find/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div>In linux and unix, find command is very powerful command</div>
<div>the reasons are (from my opinions)</div>
<div>1. in linux, unix, every configurations are done in text</div>
<div>2. if you know some strings, you may want to find a file containing those strings</div>
<div>3. this will be extremely helpful when you work with linux system</div>
<p>$find . -exec grep &#8220;stringyouwanttofind&#8221; &#8216;{}&#8217; \; -print</p>
<p>\; represents the end of argument of exec</p>
<p>{ } inserts each file</p>
<p>$find . -name &#8220;filenameyouwanttofind&#8221; -print</p>
<p>$ find . -name &#8220;*.py&#8221; -exec grep &#8220;stringyouwanttofind&#8221;  &#8216;{}&#8217; \; -print</p>
]]></content:encoded>
			<wfw:commentRss>http://web.pyncus.com/2009/06/18/powerful-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

