<?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>sathis's Blog</title>
	<atom:link href="http://startwithlinux.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://startwithlinux.wordpress.com</link>
	<description>Share Everything about GNU/Linux</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:31:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='startwithlinux.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>sathis's Blog</title>
		<link>http://startwithlinux.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://startwithlinux.wordpress.com/osd.xml" title="sathis&#039;s Blog" />
	<atom:link rel='hub' href='http://startwithlinux.wordpress.com/?pushpress=hub'/>
		<item>
		<title></title>
		<link>http://startwithlinux.wordpress.com/2010/03/09/13/</link>
		<comments>http://startwithlinux.wordpress.com/2010/03/09/13/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 10:31:49 +0000</pubDate>
		<dc:creator>sathis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://startwithlinux.wordpress.com/2010/03/09/13/</guid>
		<description><![CDATA[make websites resolution independent. http://ping.fm/2fEjN<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=startwithlinux.wordpress.com&amp;blog=6848105&amp;post=13&amp;subd=startwithlinux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>make websites resolution independent. <a href="http://ping.fm/2fEjN">http://ping.fm/2fEjN</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/startwithlinux.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/startwithlinux.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/startwithlinux.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/startwithlinux.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/startwithlinux.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/startwithlinux.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/startwithlinux.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/startwithlinux.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=startwithlinux.wordpress.com&amp;blog=6848105&amp;post=13&amp;subd=startwithlinux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://startwithlinux.wordpress.com/2010/03/09/13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1a6bc100a37d793d677ef46d977e6b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">startwithlinux</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://startwithlinux.wordpress.com/2010/03/05/12/</link>
		<comments>http://startwithlinux.wordpress.com/2010/03/05/12/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 11:44:32 +0000</pubDate>
		<dc:creator>sathis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://startwithlinux.wordpress.com/2010/03/05/12/</guid>
		<description><![CDATA[Cross Browser Compatibility Checking http://ow.ly/1pLcPm<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=startwithlinux.wordpress.com&amp;blog=6848105&amp;post=12&amp;subd=startwithlinux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cross Browser Compatibility Checking <a href="http://ow.ly/1pLcPm">http://ow.ly/1pLcPm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/startwithlinux.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/startwithlinux.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/startwithlinux.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/startwithlinux.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/startwithlinux.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/startwithlinux.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/startwithlinux.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/startwithlinux.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=startwithlinux.wordpress.com&amp;blog=6848105&amp;post=12&amp;subd=startwithlinux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://startwithlinux.wordpress.com/2010/03/05/12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1a6bc100a37d793d677ef46d977e6b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">startwithlinux</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://startwithlinux.wordpress.com/2009/03/12/4/</link>
		<comments>http://startwithlinux.wordpress.com/2009/03/12/4/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 06:29:50 +0000</pubDate>
		<dc:creator>sathis</dc:creator>
				<category><![CDATA[rhce]]></category>
		<category><![CDATA[io redirection]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://startwithlinux.wordpress.com/?p=4</guid>
		<description><![CDATA[IO REDIRECTION: Introduction For those of you&#8217;ll who have no idea what Redirection means, let me explain it in a few words. Whenever you run a program you get some output at the shell prompt. In case you don&#8217;t want that output to appear in the shell window, you can redirect it elsewhere. you can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=startwithlinux.wordpress.com&amp;blog=6848105&amp;post=4&amp;subd=startwithlinux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>IO REDIRECTION</strong>:</p></blockquote>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>Introduction</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">For                    those of you&#8217;ll who have no idea what Redirection means, let                    me explain it in a few words. Whenever you run a program you                    get some output at the shell prompt. In case you <em>don&#8217;t want</em> that output to appear in the shell window, you can redirect                    it elsewhere. you can make the output go into a file&#8230;or maybe                    go directly to the printer.. or you could make it disappear                    <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">This                    is known as Redirection. Not only can the output of programs                    be redirected, you can also redirect the input for programs.                    I shall be explaining all this in detail in this article. Lets                    begin&#8230;</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong><br />
File Descriptors</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">One                    important thing you have to know to understand Redirection is                    <em>file descriptors</em>. In Unix every file has a no. associated                    with it called the file descriptor. And in Unix everything is                    a file. Right from your devices connected to your machine to                    the normal text files storing some information &#8211; all of these                    are looked at, as files by the Operating System.<br />
</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"> Similarly even your screen on which your programs display their                    output are files for Unix. These have file descriptors associated                    with it. So when a program actually executes it sends its output                    to this file descriptor and since this particular file descriptor                    happens to be pointing to the screen, the output gets displayed                    on the screen. Had it been the file descriptor of the printer,                    the output would have been printed by the printer. (There are                    ofcourse other factors which come into play, but I guess you                    got the idea of how everything is a file and you send whatver                    you want to particular files descriptors)</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Whenever                    any program is executed (i.e. when the user types a command)                    the program has 3 important files to work with. They are standard                    input, standard output, and standard error. These are 3 files                    that are always open when a program runs. You could kind of                    consider them to be inherently present for all programs (For                    the techies.. basically when a child process is forked from                    a parent process, these 3 files are made available to the child                    process). For the rest, just remember that you always have these                    3 files with you whenever you type any command at the prompt.                    As explained before a file descriptor, is associated with each                    of these files -</span></p>
<table border="1" cellspacing="1" cellpadding="3" width="80%" align="center">
<tbody>
<tr bgcolor="#ebebeb">
<td width="20%">
<div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>File                          Descriptor</strong></span></div>
</td>
<td width="76%"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>Descriptor                        Points to -</strong></span></td>
</tr>
<tr>
<td width="20%" height="18">
<div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">0</span></div>
</td>
<td width="76%" height="18"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Standard                        Input (Generally Keyboard)</span></td>
</tr>
<tr>
<td width="20%">
<div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">1</span></div>
</td>
<td width="76%"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Standard                        output (Generally Display/Screen)</span></td>
</tr>
<tr>
<td width="20%">
<div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">2</span></div>
</td>
<td width="76%"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Standard                        Error Ouput (Generally Display/Screen)</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">You                    could redirect any of these files to other files. In short if                    you redirect 1 (standard output) to the printer, your programs                    output would start getting printed instead of being displayed                    on the screen.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">What                    is the standard input? That would be your keyboard. Most of                    the times since you enter commands with your keyboard, you could                    consider <em>0 to be your keyboard</em>. Since you get the output                    of your command on the screen, <em>1 would be the screen (display)</em> and the errors as well are shown on the screen to you, so <em>2                    would also be the screen</em>. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">For                    those of you&#8217;ll who like to think ahead of what is being discussed&#8230;                    you&#8217;ll must have already understood that you can now avoid all                    those irritating, irrelevant error messages you often get while                    executing some programs. You could just redirect the standard                    error (2) to some file and avoid seeing the error messages on                    the screen!!</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong><br />
Output Redirection</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">The                    most common use of Redirection is to redirect the output (that                    normally goes to the terminal) from a command to a file instead.                    This is known as Output Redirection. This is generally used                    when you get a lot of output when you execute your program.                    Often you see that screens scroll past very rapidly. You could                    get all the output in a file and then even transfer that file                    elsewhere or mail it to someone. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">The                    way to redirect the output is by using the &#8216; <strong>&gt;</strong> &#8216; operator                    in shell command you enter. This is shown below. The &#8216; &gt;                    &#8216; symbol is known as the <em>output redirection operator</em>.                    Any command that outputs its results to the screen can have                    its output sent to a file.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    ls &gt; listing</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">The                    &#8216; ls &#8216; command would normally give you a directory listing.                    Since you have the &#8216; <strong>&gt;</strong> &#8216; operator after the &#8216; ls &#8216;                    command, redirection would take place. What follows the &#8216; <strong>&gt;</strong> &#8216; tells Unix where to redirect the output. In our case it would                    create a file named &#8216; listing &#8216; and write the directory listing                    in that file. You could view this file using any text editor                    or by using the cat command. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>Note:</strong> If the file mentioned already exists, it is overwritten. So                    care should be taken to enter a proper name. In case you want                    to append to an existing file, then instead of the &#8216; &gt; &#8216;                    operator you should use the &#8216; <strong>&gt;&gt;</strong> &#8216; operator. This                    would append to the file if it already exists, else it would                    create a new file by that name and then add the output to that                    newly created file. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><br />
<strong><br />
Input Redirection</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Input                    Redirection is not as popular as Output Redirection. Since most                    of the times you would expect the input to be typed at the keyboard.                    But when it is used effectively, Input Redirection can be of                    great use. The general use of Input Redirection is when you                    have some kind of file, which you have ready and now you would                    like to use some command on that file. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">You                    can use Input Redirection by typing the &#8216; <strong>&lt;</strong> &#8216; operator.                    An excellent example of Input Redirection has been shown below. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    mail cousin &lt; my_typed_letter</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">The                    above command would start the mail program with contents of                    the file named &#8216; my_typed_letter &#8216; as the input since the Input                    Redirection operator was used. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>Note:</strong> You can&#8217;t have Input Redirection with any program/command. Only                    those commands that accept input from keyboard could be redirected                    to use some kind of text files as their input. Similarly Output                    Redirection is also useful only when the program sends its output                    to the terminal. In case you are redirecting the output of a                    program that runs under X, it would be of no use to you.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong></strong></span></p>
<p><strong>Error Redirection</strong></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">This                    is a very popular feature that many Unix users are happy to                    learn. In case you have worked with Unix for some time, you                    must have realised that for a lot of commands you type you get                    a lot of error messages. And you are not really bothered about                    those error messages. For example whenever I perform a search                    for a file, I always get a lot of <em>permission denied</em> error                    messages. There may be ways to fix those things. But the simplest                    way is to redirect the error messages elsewhere so that it doesn&#8217;t                    bother me. In my case I know that errors I get while searching                    for files would be of no use to me.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Here                    is a way to redirect the error messages </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    myprogram 2&gt;errorsfile</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">This                    above command would execute a program named &#8216; myprogram &#8216; and                    whatever errors are generated while executing that program would                    all be added to a file named &#8216; errorsfile &#8216; rather than be displayed                    on the screen. Remember that 2 is the error output file descriptor.                    Thus &#8216; <strong>2&gt;</strong> &#8216; means <em>redirect the error output</em>. </span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    myprogram 2&gt;&gt;all_errors_till_now</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">The                    above command would be useful in case you have been saving all                    the error messages for some later use. This time the error messages                    would append to the file rather than create a new file.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">You                    might realize that in the above case since I wasn&#8217;t interested                    in the error messages generated by the program I redirected                    the output to a file. But since those error messages don&#8217;t interest                    me I would have to go and delete that file created every time                    I run that command. Else I would have several such files created                    all over whenever I redirect my unwanted error output. An excellent                    way around is shown below</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    find / -name s*.jpg 2&gt;/dev/null</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">What&#8217;s                    /dev/null ????? That something like a black hole. Whatever is                    sent to the &#8216; /dev/null &#8216; never returns. Neither does one know                    where it goes. It simple disappears. Isn&#8217;t that fantastic !!                    So remember.. whenever you want to remove something.. something                    that you don&#8217;t want &#8230;you could just send it to /dev/null</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Isnt                    Unix wonderful !!!</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong></strong></span></p>
<p><strong>Different ways to use Redirection Operators</strong></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><em>Suppose                    you want to create a text file quickly</em></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    cat &gt; filename<br />
This is some text that I want in this file<br />
^D</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">That&#8217;s                    it!! Once you type the &#8216; cat &#8216; command, use the Redirection                    operator and add a name for a file. Then start typing your line.                    And finally press Ctrl+D. You will have a file named &#8216; filename                    &#8216; in the same directory.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><em>Suppose                    you want to add a single line to an existing file.</em></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    echo &#8220;this is a new line&#8221; &gt;&gt; exsisting_file</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">That                    would add the new line to the file named &#8216; existing_file &#8216; .                    Remember to use &#8216;<strong> &gt;&gt; </strong>&#8216; instead of &#8216;<strong> &gt;</strong> &#8216; else you would overwrite the file.</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><em>Suppose                    you wanted to join 2 files</em></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    cat file2 &gt;&gt; file1</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">Wow!!                    That a much neater way then to open a text editor and copy paste.                    The contents of &#8216; file2 &#8216; would be added to &#8216; file1 &#8216; .</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><em>Suppose                    you want to join a couple of files </em></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><strong>$                    cat file1 file2 &gt; file3</strong></span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">This                    would add the contents of &#8216; file1 &#8216; and &#8216; file2 &#8216; and then write                    these contents into a new file named &#8216; file3 &#8216; .</span></p>
<p><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"><br />
Redirection works with many commands besides normal ones such                    as <em>&#8216; cat &#8216;</em> or <em>&#8216; ls &#8216;</em> . One example I could give                    you is i</span><span style="font-family:Verdana,Arial,Helvetica,sans-serif;">n                    case you are programming using any language you could redirect                    the output messages of the compilation of your code</span><span style="font-family:Verdana,Arial,Helvetica,sans-serif;"> so that you can view them later on. There are lots of commands                    where you can use Redirection. The more you use Unix the more                    you will come to know.</span><br />
command1 &lt; infile &gt; outfile<br />
* combines the two capabilities: command1 reads from infile and writes to outfile.<br />
<em><strong>Piping</strong></em></p>
<p>Programs can be run together such that one program reads the output from another with no need for an explicit intermediate file:<br />
A pipeline of three programs run on a text terminal</p>
<p>command1 | command2</p>
<p>executes command1, using its output as the input for command2 (commonly called piping, since the &#8220;|&#8221; character is known as a &#8220;pipe&#8221;).</p>
<p>This is equivalent to using two redirects and a temporary file:</p>
<p>command1 &gt; tempfile<br />
command2 &lt; tempfile<br />
rm tempfile</p>
<p>A good example for command piping is combining echo with another command to achieve something interactive in a non-interactive shell, e.g.</p>
<p>echo -e &#8220;user\npass&#8221; | ftp localhost</p>
<p>This runs the ftp client with input user, press return, then pass.</p>
<h2><span class="mw-headline">Chained pipelines</span></h2>
<p>The redirection and piping tokens can be chained together to create complex commands. For example:</p>
<div style="text-align:left;" dir="ltr">
<pre class="source-bash">ls | grep <span class="st0">'<span class="es0">\.</span>sh'</span> | sort &gt; shlist</pre>
</div>
<p>lists the contents of the <a class="mw-redirect" title="Current directory" href="http://en.wikipedia.org/wiki/Current_directory">current directory</a>, where this output is filtered to only contain lines which contain <tt>.sh</tt>, sort this resultant output lexicographically, and place the final output in <tt>shlist</tt>. This type of construction is used very commonly in <a title="Shell script" href="http://en.wikipedia.org/wiki/Shell_script">shell scripts</a> and <a title="Batch file" href="http://en.wikipedia.org/wiki/Batch_file">batch files</a>.</p>
<p>There are lots of commands where you can use Redirection. The more you use Unix the more you will come to know.<br />
<strong>References:</strong></p>
<p>http://www.codecoffee.com/tipsforlinux/articles2/042.html</p>
<p>www.wikipedia.com</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/startwithlinux.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/startwithlinux.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/startwithlinux.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/startwithlinux.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/startwithlinux.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/startwithlinux.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/startwithlinux.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/startwithlinux.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=startwithlinux.wordpress.com&amp;blog=6848105&amp;post=4&amp;subd=startwithlinux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://startwithlinux.wordpress.com/2009/03/12/4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1a6bc100a37d793d677ef46d977e6b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">startwithlinux</media:title>
		</media:content>
	</item>
	</channel>
</rss>
