Try for example using a command along with cat grep commands and a redirection: cat file7 | grep 3 | grep 6 > out.file7 As you progress with Unix, you will see that pipes are one of the most powerful commands that provides that essential joining up of the modular nature of Unix commands. If we return to the example of the input file in Figure 8 then what if one of the input files had spaces as in: = 800’ ‘JJP Then it be missed with the command we used before: grep * ‘JJP=800’ Working with We can’t search all possible combinations but you can do the grep command twice to get a likely unique answer in this case. So first run grep * ‘JJP’ and this will find all files that have in them. Then pipe this ‘JJP’ result to another grep command that searches for the number so ‘800’,
Try for example using a cat command along with grep commands and a redirection: cat file7 | grep 3 | grep 6 > out.file7 As you progress with Unix, you will see that pipes are one of the most powerful commands that provides that essential joining up of the modular nature of Unix commands. If we return to the example of the input file in Figure 8 then what if one of the input files had spaces as in: ‘JJP = 800’ Then it be missed with the command we used before: grep ‘JJP=800’ * Working with We can’t search all possible combinations but you can do the grep command twice to get a likely unique answer in this case. So first run grep ‘JJP’ * and this will find all files that have ‘JJP’ in them. Then pipe this result to another grep command that searches for the number ‘800’, so
e-learning%20unix%20final.docx