How do u pipe two commands? like what is the charachter to do it.? thanx.
Printable View
How do u pipe two commands? like what is the charachter to do it.? thanx.
| is the symbol your looking for.
eg: ls | less
This will pipe the ls command through the less command.
HTH
The command to pipe is pipe "|" without the quotes for example cat hello.txt | grep hello will search the file hello.txt for hello
or or or or
ls -all /dev | more
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.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
i think i got the hang of it,
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.
here's more things to learn:
http://www.tldp.org/LDP/abs/html/
-w0rm3y