<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Playing with CLI</title>
	<atom:link href="http://playingwithcli.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://playingwithcli.wordpress.com</link>
	<description>Learn and play with command line interface</description>
	<lastBuildDate>Mon, 10 Aug 2009 16:00:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='playingwithcli.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Playing with CLI</title>
		<link>http://playingwithcli.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://playingwithcli.wordpress.com/osd.xml" title="Playing with CLI" />
	<atom:link rel='hub' href='http://playingwithcli.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How To Burn DVD&#8217;s from the command line</title>
		<link>http://playingwithcli.wordpress.com/2009/08/10/how-to-burn-dvds-from-the-command-line/</link>
		<comments>http://playingwithcli.wordpress.com/2009/08/10/how-to-burn-dvds-from-the-command-line/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:48:56 +0000</pubDate>
		<dc:creator>/\/\ @ /\/ U</dc:creator>
				<category><![CDATA[BASH]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=143</guid>
		<description><![CDATA[Suppose you want to burn the content of  /my/directory/datas at the root of the DVD, you need to type: $ growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hda -R -J -pad &#8220;/my/directory/datas&#8221; Remember that input-charset is setted to the right value. If you do not define it, your default system charset will be used. References www.debuntu.org Posted in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=143&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose you want to burn the content of  /my/directory/datas at the root of the DVD, you need to type:</p>
<blockquote><p><strong>$ growisofs -dvd-compat  -input-charset=ISO-8859-1 -Z /dev/hda -R -J -pad &#8220;/my/directory/datas&#8221;</strong></p></blockquote>
<p>Remember that input-charset is setted to the right value. If you do not define it, your default system charset will be used.</p>
<h2>References</h2>
<p><a href="http://www.debuntu.org" target="_blank">www.debuntu.org</a></p>
<br />Posted in BASH  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=143&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/08/10/how-to-burn-dvds-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manur18</media:title>
		</media:content>
	</item>
		<item>
		<title>Wget &#8211; the downloader for CLI</title>
		<link>http://playingwithcli.wordpress.com/2009/07/27/wget-the-downloader-for-cli/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/27/wget-the-downloader-for-cli/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 05:55:18 +0000</pubDate>
		<dc:creator>chickooiyer</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/2009/07/27/wget-the-downloader-for-cli/</guid>
		<description><![CDATA[wget as all knows is a downloader for the CLI. It has all the features to be proclaimed as a wonderful download manager. hope anyone has encountered a situation where you want to download a set of files. Just create a file with all the download links and give it to wget. Create the file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=141&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>wget as all knows is a downloader for the CLI. It has all the features to be proclaimed as a wonderful download manager. hope anyone has encountered a situation where you want to download a set of files. Just create a file with all the download links and give it to wget.</p>
<p>Create the file</p>
<p>In FireFox use the copy link location command from the context menu (the menu you get while doing a right click. Please correct me if i am wrong <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) and paste it into a file.</p>
<p>WGET IN ACTION</p>
<p>$ wget -cvvv -i download.txt</p>
<p>This will download all the files specified in download.txt to the current location.</p>
<p>Options Explained.</p>
<p>-c &#8211; resume support if the server supports the same</p>
<p>-v &#8211; verbose mode, displays activity</p>
<br />Posted in BASH Tagged: download, manager, wget <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=141&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/27/wget-the-downloader-for-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">chickooiyer</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting IP Address using awk</title>
		<link>http://playingwithcli.wordpress.com/2009/07/19/getting-ip-address-using-awk/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/19/getting-ip-address-using-awk/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 15:21:32 +0000</pubDate>
		<dc:creator>sameerthahir</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=125</guid>
		<description><![CDATA[Useful for.. Scripts Checking IP Address Often Command lenny-dhabba:/home/sameer# ifconfig eth1 &#124; awk '/dr:/{gsub(/.*:/,"",$2);print$2}' 169.254.167.101 lenny-dhabba:/home/sameer# ifconfig &#124; awk '/dr:/{gsub(/.*:/,"",$2);print$2}' 192.168.1.8 169.254.167.101 127.0.0.1 Tools ifconfig command awk Explanation The command used for finding IP Address is ifconfig, it produces lot of output, what we need is the IP Address of any interface or of all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=125&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3> Useful for..</h3>
<ul>
<li>Scripts </li>
<li>Checking IP Address Often</li>
</ul>
<h2>Command</h2>
<p></p>
<table border="2">
<tr>
<td>
<pre>
lenny-dhabba:/home/sameer# ifconfig eth1 | awk '/dr:/{gsub(/.*:/,"",$2);print$2}'
169.254.167.101

lenny-dhabba:/home/sameer# ifconfig | awk '/dr:/{gsub(/.*:/,"",$2);print$2}'
192.168.1.8

169.254.167.101

127.0.0.1
</pre>
</td>
</tr>
</table>
<h3>Tools</h3>
<ul>
<li>ifconfig command</li>
<li>awk</a></li>
</ul>
<h3>Explanation</h3>
<p>The command used for finding IP Address is <i><b>ifconfig</b></i>, it produces lot of output, what we need is the IP Address of any interface or of all interfaces, for this, we send the output of <i><b> ifconfig </b></i> to another command line tool called awk. Awk&#8217;s job is to remove the unnecessary things from ifconfig&#8217;s output, for this we tell awk using a language it understands. From this language awk interprets it as:
<ol>
<li> Find a line containing the string &#8220;dr&#8221; . As we know the  second line in <i>ifconfig</i> output contains the IP Address.</li>
<li> Next get the string near to inet addr</li>
<li> Finally print that string</li>
</ol>
<p>. Hence we get the desired output.</p>
<h3>Disadvantages</h3>
<ul>
<li>Prints unnecessary new line characters in between</li>
<li>There are better ways to print the characters using perl</li>
</ul>
<h2>References</h2>
<ul>
<li><a href="http://www.gnu.org/software/gawk/">GNU AWK</a></li>
<li><a href="http://www.catonmat.net/blog/golfing-the-extraction-of-ip-addresses-from-ifconfig/">Different ways of printing IP Address from ifconfig using various tools</a></li>
<li><a href="http://www.vectorsite.net/tsawk.html">AWK Primer</a></li>
</ul>
<br />Posted in BASH Tagged: awk, ifconfig, ip, networking <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=125&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/19/getting-ip-address-using-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sameerthahir</media:title>
		</media:content>
	</item>
		<item>
		<title>Command line history</title>
		<link>http://playingwithcli.wordpress.com/2009/07/19/command-line-history/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/19/command-line-history/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 12:53:56 +0000</pubDate>
		<dc:creator>harikris2000</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[.bash_history]]></category>
		<category><![CDATA[history]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=120</guid>
		<description><![CDATA[To view the history of commands of a user. history The history of commands are stored in the file .bash_history of user home directory. To clear complete command line history of a user temporarily for a session. history -c Or use space ie.&#8221; &#8221; before a command to skip it from being in the history. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=120&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To view the history of commands of a user.</p>
<p><em>history</em></p>
<p>The history of commands are stored in the file .bash_history of user home directory.</p>
<p>To clear complete command line history of a user temporarily for a session.</p>
<p><em>history -c</em></p>
<p>Or use space ie.&#8221; &#8221; before a command to skip it from being in the history.</p>
<br />Posted in BASH Tagged: .bash_history, history <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=120&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/19/command-line-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">harikris2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Get the total number of lines</title>
		<link>http://playingwithcli.wordpress.com/2009/07/18/get-the-total-number-of-lines/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/18/get-the-total-number-of-lines/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 16:06:29 +0000</pubDate>
		<dc:creator>Sreenadh</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[lines]]></category>
		<category><![CDATA[total]]></category>
		<category><![CDATA[wc]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=97</guid>
		<description><![CDATA[If you want to know the total number of lines of files in a directory, execute the following line of script in your terminal. You can also save this command in a file and execute. lines=0; for i in `find . -name &#8220;*.php&#8221;`; do line=`cat $i &#124; wc -l`; let lines=$lines+$line; done; echo $lines lines=0; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=97&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to know the total number of lines of files in a directory, execute the following line of script in your terminal. You can also save this command in a file and execute.</p>
<p>lines=0; for i in `find . -name &#8220;*.php&#8221;`; do line=`cat $i | wc -l`; let lines=$lines+$line; done; echo $lines</p>
<p>lines=0; for i in `find /var/www/wordpress -name &#8220;*.php&#8221;`; do line=`cat $i | wc -l`; let lines=$lines+$line; done; echo $lines</p>
<p><strong>OR</strong></p>
<p>find . -name &#8220;*.php&#8221; -print0 | xargs -0 wc -l | tail -n1</p>
<br />Posted in BASH Tagged: count, echo, find, for, lines, total, wc, wordpress <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=97&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/18/get-the-total-number-of-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">$ŕêëñ@ďĥ ĥ</media:title>
		</media:content>
	</item>
		<item>
		<title>Get the count of files of a specific file type</title>
		<link>http://playingwithcli.wordpress.com/2009/07/18/get-the-count-of-files-of-a-specific-file-type/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/18/get-the-count-of-files-of-a-specific-file-type/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 15:49:37 +0000</pubDate>
		<dc:creator>Sreenadh</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[wc]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=93</guid>
		<description><![CDATA[To know the count of files of a particular type in a directory find . -name &#8220;*.png&#8221; &#124; wc -l find /usr/share/images/ &#8220;*.jpg&#8221; &#124; wc -l Posted in BASH Tagged: find, wc<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=93&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To know the count of files of a particular type in a directory</p>
<p>find . -name &#8220;*.png&#8221; | wc -l</p>
<p>find /usr/share/images/ &#8220;*.jpg&#8221; | wc -l</p>
<br />Posted in BASH Tagged: find, wc <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=93&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/18/get-the-count-of-files-of-a-specific-file-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">$ŕêëñ@ďĥ ĥ</media:title>
		</media:content>
	</item>
		<item>
		<title>Retrieve default gnome-panel</title>
		<link>http://playingwithcli.wordpress.com/2009/07/17/retrieve-default-gnome-panel/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/17/retrieve-default-gnome-panel/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 15:04:14 +0000</pubDate>
		<dc:creator>harikris2000</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[gconftool]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome panel]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=83</guid>
		<description><![CDATA[To retrieve gnome-panel to default if deleted (in etch) or from a customized one (in lenny atleast one panel remains). gnome-session-remove gnome-panel gconftool-2 --recursive-unset /apps/panel gnome-panel &#38; Note : Commands should be executed in terminal of Gnome. Posted in BASH Tagged: debian, etch, gconftool, gnome, gnome panel, lenny, panel, remove<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=83&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To retrieve gnome-panel to default if deleted (in etch) or from a customized one (in lenny atleast one panel remains).</p>
<pre style="font-size:12px;"><em>gnome-session-remove gnome-panel
gconftool-2 --recursive-unset /apps/panel
gnome-panel &amp;</em></pre>
<p>Note : Commands should be executed in terminal of Gnome.</p>
<br />Posted in BASH Tagged: debian, etch, gconftool, gnome, gnome panel, lenny, panel, remove <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=83&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/17/retrieve-default-gnome-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">harikris2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Migrate SVN repository</title>
		<link>http://playingwithcli.wordpress.com/2009/07/14/migrate-svn-repository/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/14/migrate-svn-repository/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 06:53:04 +0000</pubDate>
		<dc:creator>Sreenadh</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=81</guid>
		<description><![CDATA[Steps to migrate SVN repository. svnadmin dump &#60;location_of_old_repo&#62; &#62; dump_filename svnadmin load &#60;location_of_new_repo&#62; &#60; dump_filename Eg: svnadmin dump /var/svn/myproject &#62; /tmp/myproject.dump svnadmin create /var/svn/mynewproject svnadmin load /var/svn/mynewproject &#60; /tmp/myproject.dump To check everything is okay. svnadmin verify /var/svn/myproject svnadmin verify /var/svn/mynewproject Posted in BASH Tagged: dump, migrate, svn<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=81&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Steps to migrate SVN repository.</p>
<p>svnadmin dump &lt;location_of_old_repo&gt; &gt; dump_filename</p>
<p>svnadmin load &lt;location_of_new_repo&gt; &lt; dump_filename</p>
<p>Eg:</p>
<p>svnadmin dump /var/svn/myproject &gt; /tmp/myproject.dump</p>
<p>svnadmin create /var/svn/mynewproject</p>
<p>svnadmin load /var/svn/mynewproject &lt; /tmp/myproject.dump</p>
<p>To check everything is okay.</p>
<p>svnadmin verify /var/svn/myproject</p>
<p>svnadmin verify /var/svn/mynewproject</p>
<br />Posted in BASH Tagged: dump, migrate, svn <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=81&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/14/migrate-svn-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">$ŕêëñ@ďĥ ĥ</media:title>
		</media:content>
	</item>
		<item>
		<title>Rebuild deb package from installed files</title>
		<link>http://playingwithcli.wordpress.com/2009/07/14/rebuild-deb-package-from-installed-files/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/14/rebuild-deb-package-from-installed-files/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 03:59:17 +0000</pubDate>
		<dc:creator>Sreenadh</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[dpkg-repack]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=78</guid>
		<description><![CDATA[To rebuild Debian package (.deb) from an installation apt-get install dpkg-repack dpkg-repack &#60;package_name&#62; Eg: dpkg-repack &#60;apache&#62; Posted in BASH Tagged: deb, debian, dpkg, dpkg-repack<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=78&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To rebuild Debian package (.deb) from an installation</p>
<p>apt-get install dpkg-repack</p>
<p>dpkg-repack &lt;package_name&gt;</p>
<p>Eg:</p>
<p>dpkg-repack &lt;apache&gt;</p>
<br />Posted in BASH Tagged: deb, debian, dpkg, dpkg-repack <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=78&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/14/rebuild-deb-package-from-installed-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">$ŕêëñ@ďĥ ĥ</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove a service from all runlevels</title>
		<link>http://playingwithcli.wordpress.com/2009/07/14/remove-a-service-from-all-runlevels/</link>
		<comments>http://playingwithcli.wordpress.com/2009/07/14/remove-a-service-from-all-runlevels/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 03:55:36 +0000</pubDate>
		<dc:creator>Sreenadh</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[update-rc.d]]></category>

		<guid isPermaLink="false">http://playingwithcli.wordpress.com/?p=76</guid>
		<description><![CDATA[To remove a service (daemon) from all runlevels. update-rc.d -f remove &#60;service_name&#62; Eg: update-rc.d -f remove exim4 Posted in BASH Tagged: debian, update-rc.d<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=76&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To remove a service (daemon) from all runlevels.</p>
<p>update-rc.d -f remove &lt;service_name&gt;</p>
<p>Eg:</p>
<p>update-rc.d -f remove exim4</p>
<br />Posted in BASH Tagged: debian, update-rc.d <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/playingwithcli.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/playingwithcli.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/playingwithcli.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/playingwithcli.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/playingwithcli.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/playingwithcli.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/playingwithcli.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/playingwithcli.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=playingwithcli.wordpress.com&amp;blog=7285870&amp;post=76&amp;subd=playingwithcli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://playingwithcli.wordpress.com/2009/07/14/remove-a-service-from-all-runlevels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">$ŕêëñ@ďĥ ĥ</media:title>
		</media:content>
	</item>
	</channel>
</rss>
