Question - Define piping.
Answer -
When two or more commands are required to be used at the same time as well as run them consecutively, the ‘piping’ process is used. Here two commands are connected so that, the output of one program serves as the input for another program. It is denoted by the symbol ‘|’.
Enlisted below are few commands where piping is used:
- grep command: searches files for certain matching patterns.
- sort command: arranges lines of text alphabetically or numerically.