Unix simple question
Results 1 to 8 of 8

Thread: Unix simple question

  1. #1

    Unix simple question

    How do u pipe two commands? like what is the charachter to do it.? thanx.

  2. #2
    It's a gas!
    Join Date
    Jul 2002
    Posts
    699
    | is the symbol your looking for.

    eg: ls | less

    This will pipe the ls command through the less command.

    HTH

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    55
    The command to pipe is pipe "|" without the quotes for example cat hello.txt | grep hello will search the file hello.txt for hello

  4. #4
    Senior Member gore's Avatar
    Join Date
    Oct 2002
    Location
    Michigan
    Posts
    7,177
    or or or or

    ls -all /dev | more

  5. #5
    Priapistic Monk KorpDeath's Avatar
    Join Date
    Dec 2001
    Posts
    2,628
    I'm sorry but that's funny. I know you are a newbie but THAT is just funny.

    What's the character for pipe, HAHAHAHAHA!!!!

    Knowledge | know more | RTFM | Man pages | Made KD's day


    Thanks for the laugh.
    Mankind have a great aversion to intellectual labor; but even supposing knowledge to be easily attainable, more people would be content to be ignorant than would take even a little trouble to acquire it.
    - Samuel Johnson

  6. #6

    ||||||||||||||||||||||||||||||

    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    i think i got the hang of it,

  7. #7
    Senior Member n01100110's Avatar
    Join Date
    Jan 2002
    Posts
    352
    Or , lets say your not sure if your friend is logged onto his box or not , you may have to be root to do this. who | grep friend. This searches for the username "friend" that is logged on.
    "Serenity is not the absence of conflict, but the ability to cope with it."

  8. #8
    Senior Member
    Join Date
    May 2003
    Posts
    115
    here's more things to learn:

    http://www.tldp.org/LDP/abs/html/

    -w0rm3y

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •