Results 1 to 5 of 5

Thread: Want to know the Concept

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    57

    Want to know the Concept

    I want to know about pipes concept in UNIX. Can someone give a elaborate explanation here in this discussion.


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    Re: Want to know the Concept

    The concept is easiest of the concepts to learn. In the "software pipeline", different processes are connected through pipes in which output of one process is directly fed as the input to the next process and so on.

    For example,

    Code:
    who | grep "sp" | wc
    "who" will disply the users logged in the system. grep "sp" will search for "sp" in this list of users and wc will act on the output of this grep and print the number of line, words and charactes in the output of grep command.

    Hope this was clear.

    Cheers,
    Kalayama

    [COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

    Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Answers
    10

    Re: Want to know the Concept

    piping..
    It is an operator used to compile m0re than one command.
    first command output will be input to next command.
    ls -l | grep"^d"
    will lists out only subdirectories....
    i think this is enough..

    prasad.gandra


  4. #4
    Contributing Member
    Join Date
    Jul 2006
    Answers
    57

    Re: Want to know the Concept

    Yes I understood the concept clearly. This is a great detailed explanation with example given by you friends.Thanks all.


  5. #5
    Contributing Member
    Join Date
    Dec 2006
    Answers
    39

    Re: Want to know the Concept

    In SImple terms..

    Output of one command goes as input to the other..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact