Download this Blogger Template by Clicking Here!

Ad 468 X 60

banner

Monday 1 April 2013

Widgets

Redirecting STDOUT to a Program

 Redirecting STDOUT to a Program

  • Pipes can connect commands:
    command 1 / command
  • sends STDOUT of command 1 to STDIN of command2 instead of  the screen.      
  • STDERR is not forwarded across pipes 
Used to combine the functionality of multiple tools 

  • command1/command2/command3...etc

Two of the basic tenets of UNIX philosophy are:make small programs that do one thing well,and expect the output of every program to become the input to another,as yet unknown,program.The use of pipes let you leverage the effects of these two design principles to create extremely powerful chains of command to achieve your desired result.Most command-line program that operate on files can also accept input in standard in,and output to standard out.Some commands like tr are designed to only operate within a pipe.

Any command that writes to stander output can be used on the left-hand side of a pipe.

Any command that reads from stander input can be used on the right-hand side of a pipe.

Multiple command can be chained together with pipes.

Example output:[student@stationX man]$ pwd 
/usr/share/man   
[student@stationX man]$ ls -c/ tr 'a-z' 'a-z'
MAN1 MAN3 MAN5 MAN7 MAN9 PT_BR WHATIS
MAN2 MAN4 MAN6 MAN8 MANN TMAC.H

In the example above,lower case letter of the alpha

    THANK YOU FOR VISITED GURU NETWORK I HOPE LIKE THIS ARTICLE          


             

SHARE THIS POST   

  • Facebook
  • Twitter
  • Myspace
  • Google Buzz
  • Reddit
  • Stumnleupon
  • Delicious
  • Digg
  • Technorati
Author: Kuldipsinh
Hi! I am Kuldipsinh,a certified Indian Network Consultant,Pro Blogger,Computer Engineer Software Editor and an addicted Web Developer. Read More →

1 comment:

  1. Redirecting Stdout To A Program >>>>> Download Now

    >>>>> Download Full

    Redirecting Stdout To A Program >>>>> Download LINK

    >>>>> Download Now

    Redirecting Stdout To A Program >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete