Link to home
Start Free TrialLog in
Avatar of ronnie_bobo
ronnie_bobo

asked on

standard output(>) and Pipe(|)

Hi ,
what are the differences between  "|" and ">" ?
Can you bring A Example For differing these two Case?

Best Regards
Ronnie
SOLUTION
Avatar of trigger-happy
trigger-happy
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
$ echo "foo" > file
$ cat file
foo
$ cat file | sed 's/foo/bar/' > file1
$ cat file1
bar
$ cat file*
foo
bar
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manav_mathur
manav_mathur

The process on the left must be capable of generating something on its STDOUT. The process on the right must be capable of feeding on its STDIN.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial