First page Back Continue Last page Overview Graphics
Example 2-4
Piping |
A better way to find the number of Pg phase lines in the collect.out file lines is to pipe the output of grep command directly to wc command. This powerful action is called piping and can be done as many times as required within a give complex command.
[aghods@ghods example1]$ grep "Pg " collect.out | wc -l
352
Again the combined command produced the same result of 352 Pg phase lines.