<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>txt</title>
	
	<link>http://txt.binnyva.com</link>
	<description>Linux commands and code snippets collection</description>
	<pubDate>Tue, 07 Jul 2009 18:33:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/binnyva/txt" type="application/rss+xml" /><item>
		<title>Add Line Numbers</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/KT-4NZshC_8/</link>
		<comments>http://txt.binnyva.com/2009/07/add-line-numbers/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 18:20:33 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[line]]></category>

		<category><![CDATA[number]]></category>

		<category><![CDATA[numbering]]></category>

		<category><![CDATA[sed]]></category>

		<category><![CDATA[shellfu]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=645</guid>
		<description><![CDATA[Use this command to add line numbers to a text file&#8230;

sed = filename.txt &#124; sed 'N;s/\n/\t/' > filename_number.txt

]]></description>
			<content:encoded><![CDATA[<p class="intro">Use this command to add line numbers to a text file&#8230;</p>
<pre><code class="cli">
sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/KT-4NZshC_8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/07/add-line-numbers/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/07/add-line-numbers/</feedburner:origLink></item>
		<item>
		<title>Install Package List</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/PAJZwBFbVII/</link>
		<comments>http://txt.binnyva.com/2009/07/install-package-list/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 18:28:41 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[file]]></category>

		<category><![CDATA[install]]></category>

		<category><![CDATA[list]]></category>

		<category><![CDATA[package]]></category>

		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=643</guid>
		<description><![CDATA[Install a list of packages from a text file.

cat packages.txt &#124; xargs apt-get install

]]></description>
			<content:encoded><![CDATA[<p class="intro">Install a list of packages from a text file.</p>
<pre><code class="cli">
cat packages.txt | xargs apt-get install
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/PAJZwBFbVII" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/07/install-package-list/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/07/install-package-list/</feedburner:origLink></item>
		<item>
		<title>Rename Command</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/WfFGxcT7o6M/</link>
		<comments>http://txt.binnyva.com/2009/07/rename-command/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 18:27:49 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[file]]></category>

		<category><![CDATA[rename]]></category>

		<category><![CDATA[shellfu]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=641</guid>
		<description><![CDATA[Different way to use the rename command.

rename 's/.html$/.php/' *.html

]]></description>
			<content:encoded><![CDATA[<p class="intro">Different way to use the rename command.</p>
<pre><code class="cli">
rename 's/.html$/.php/' *.html
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/WfFGxcT7o6M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/07/rename-command/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/07/rename-command/</feedburner:origLink></item>
		<item>
		<title>Get a Random Futurama Quote</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/EKyM17rt7po/</link>
		<comments>http://txt.binnyva.com/2009/07/get-a-random-futurama-quote/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 18:28:21 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[curl]]></category>

		<category><![CDATA[futurama]]></category>

		<category><![CDATA[quote]]></category>

		<category><![CDATA[random]]></category>

		<category><![CDATA[slashdot]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=639</guid>
		<description><![CDATA[Useless - but fun - get a random Futurama Quote

curl -Is slashdot.org &#124; egrep '^X-(F&#124;B)' &#124; cut -d \- -f 2

]]></description>
			<content:encoded><![CDATA[<p class="intro">Useless - but fun - get a random Futurama Quote</p>
<pre><code class="cli">
curl -Is slashdot.org | egrep '^X-(F|B)' | cut -d \- -f 2
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/EKyM17rt7po" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/07/get-a-random-futurama-quote/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/07/get-a-random-futurama-quote/</feedburner:origLink></item>
		<item>
		<title>Create Random Password</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/hHPbK49UswY/</link>
		<comments>http://txt.binnyva.com/2009/07/create-random-password/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:47:27 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[head]]></category>

		<category><![CDATA[password]]></category>

		<category><![CDATA[random]]></category>

		<category><![CDATA[shell]]></category>

		<category><![CDATA[shellfu]]></category>

		<category><![CDATA[tr]]></category>

		<category><![CDATA[urandom]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=637</guid>
		<description><![CDATA[Use this command to create a random password

&#60; /dev/urandom tr -dc A-Za-z0-9_ &#124; head -c8

Also see&#8230;
]]></description>
			<content:encoded><![CDATA[<p class="intro">Use this command to create a random password</p>
<pre><code class="cli">
&lt; /dev/urandom tr -dc A-Za-z0-9_ | head -c8
</code></pre>
<p><a href="http://txt.binnyva.com/2008/10/linux-command-to-generate-a-password/">Also see&#8230;</a></p>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/hHPbK49UswY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/07/create-random-password/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/07/create-random-password/</feedburner:origLink></item>
		<item>
		<title>CDPATH</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/B8NOxGbUET0/</link>
		<comments>http://txt.binnyva.com/2009/06/cdpath/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 18:31:19 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[cdpath]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[path]]></category>

		<category><![CDATA[shellfu]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=635</guid>
		<description><![CDATA[CDPATH is to cd what PATH is to exectable. You can go to a folder inside any of the CDPATH folders by just cd 'folder name' - no mater where you are currently.

export CDPATH='.:~:/var/www/html:~/Scripts'

]]></description>
			<content:encoded><![CDATA[<p class="intro">CDPATH is to cd what PATH is to exectable. You can go to a folder inside any of the CDPATH folders by just <code>cd 'folder name'</code> - no mater where you are currently.</p>
<pre><code class="cli">
export CDPATH='.:~:/var/www/html:~/Scripts'
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/B8NOxGbUET0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/06/cdpath/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/06/cdpath/</feedburner:origLink></item>
		<item>
		<title>Use ffmpeg to create a screencast</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/vaedR7mLQic/</link>
		<comments>http://txt.binnyva.com/2009/06/use-ffmpeg-to-create-a-screencast/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 18:48:29 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[ffmpeg]]></category>

		<category><![CDATA[filler]]></category>

		<category><![CDATA[screencast]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=633</guid>
		<description><![CDATA[You can use this command to create a screencast using ffmpeg.

ffmpeg -f x11grab -s 800x600 -i :0.0 /tmp/screencast.mpg

]]></description>
			<content:encoded><![CDATA[<p class="intro">You can use this command to create a screencast using ffmpeg.</p>
<pre><code class="cli">
ffmpeg -f x11grab -s 800x600 -i :0.0 /tmp/screencast.mpg
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/vaedR7mLQic" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/06/use-ffmpeg-to-create-a-screencast/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/06/use-ffmpeg-to-create-a-screencast/</feedburner:origLink></item>
		<item>
		<title>Backup Del.icio.us posts</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/KgrsxuwNYFY/</link>
		<comments>http://txt.binnyva.com/2009/06/backup-delicious-posts/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:30:13 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[backup]]></category>

		<category><![CDATA[bookmark]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[delicious]]></category>

		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=630</guid>
		<description><![CDATA[Backup all delicious bookmarks using this command

wget --user=username --password=password https://api.del.icio.us/v1/posts/all -O bookmarks.xml

]]></description>
			<content:encoded><![CDATA[<p class="intro">Backup all delicious bookmarks using this command</p>
<pre><code class="cli">
wget --user=username --password=password https://api.del.icio.us/v1/posts/all -O bookmarks.xml
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/KgrsxuwNYFY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/06/backup-delicious-posts/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/06/backup-delicious-posts/</feedburner:origLink></item>
		<item>
		<title>Replacing in Found Files</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/nJSkO6XMJow/</link>
		<comments>http://txt.binnyva.com/2009/06/replacing-in-found-files/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 18:32:21 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Perl]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[find]]></category>

		<category><![CDATA[replace]]></category>

		<category><![CDATA[string]]></category>

		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=628</guid>
		<description><![CDATA[Replace one string by another in all file found by find. 

find . -name *whatyouwant* -exec perl -pi.bak -e 's/TEXT_TO_REPLACE/TEXT_TO_REPLACE_IT_WITH/g' {} \;

]]></description>
			<content:encoded><![CDATA[<p class="intro">Replace one string by another in all file found by find. </p>
<pre><code class="cli">
find . -name *whatyouwant* -exec perl -pi.bak -e 's/TEXT_TO_REPLACE/TEXT_TO_REPLACE_IT_WITH/g' {} \;
</code></pre>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/nJSkO6XMJow" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/06/replacing-in-found-files/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/06/replacing-in-found-files/</feedburner:origLink></item>
		<item>
		<title>Backup and Restore Boot sector</title>
		<link>http://feedproxy.google.com/~r/binnyva/txt/~3/e1T0jMMErPY/</link>
		<comments>http://txt.binnyva.com/2009/06/backup-and-restore-boot-sector/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 18:22:18 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
		
		<category><![CDATA[Command Line]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[backup]]></category>

		<category><![CDATA[boot]]></category>

		<category><![CDATA[bootsector]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[dd]]></category>

		<category><![CDATA[restore]]></category>

		<category><![CDATA[sector]]></category>

		<guid isPermaLink="false">http://txt.binnyva.com/?p=626</guid>
		<description><![CDATA[Use these commands to backup/restore your boot sector

dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup
dd if=bootsector.img of=/dev/hda #restore

Original Article
]]></description>
			<content:encoded><![CDATA[<p class="intro">Use these commands to backup/restore your boot sector</p>
<pre><code class="cli">
dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup
dd if=bootsector.img of=/dev/hda #restore
</code></pre>
<p><a href="http://tips4linux.com/backing-up-the-bootsector/">Original Article</a></p>
<img src="http://feeds.feedburner.com/~r/binnyva/txt/~4/e1T0jMMErPY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://txt.binnyva.com/2009/06/backup-and-restore-boot-sector/feed/</wfw:commentRss>
		<feedburner:origLink>http://txt.binnyva.com/2009/06/backup-and-restore-boot-sector/</feedburner:origLink></item>
	</channel>
</rss>
