English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

'cause both seem identical to me...

2007-07-19 06:08:11 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

The way I've generally seen the terminology used is:

"Redirection" is shifting stdout or stderr into a file:
ls -l > /tmp/myListing

"Piping" is shifting stdout or stderr to the stdin stream of another program:
ls -l | grep myFile

2007-07-19 06:26:16 · answer #1 · answered by McFate 7 · 0 0

They aren't, stdout, stdin and stderr are always open file handles, redirecting them points them to someplace else. Pipes are created separate from these three. The underlying mechanisms are the same, but for example you can never run out of file handles when redirecting, but with piping you can.

2007-07-19 06:15:44 · answer #2 · answered by Pfo 7 · 0 0

redirecting is sending from a location to another location.

Lets say A B C is three place. You want to go from A to B. And when you came at B. B will automatically transfer you to C location. Its redirecting.

Thanks

2007-07-19 06:22:39 · answer #3 · answered by Stranger 3 · 0 1

fedest.com, questions and answers