pokuri
asked on
Using pipes
An user inputs a string from keyboard and transfers it to the child using pipes, can anyone tell what commands to use
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Noted.
/abhijit/
/abhijit/
if so the command to use is "|" without the codes. Thats the pipe charcater which you can get by typing shift+\
e.g say you have to count the number of words in a file
you can do
cat filename | wc -w
here your file content is piped to the word count program 'wc'
what internally the system ( shell ? ) does is that it creates a pipe between your cat and wc command
effectively connecting the standard output of 'cat' to the standard input of 'wc'. The shell takes care of all the inter process communication or whatever
-abhijit