Skip to main content

13.2) Linking Commands


We have seen how we can link two Unix commands in the last section when using an echo command with a redirection command. Unix has a lot of commands and there is a way to better link them together. The method is called the pipe. The pipe command is ‘|’. As you get more experienced with Unix, you will find this is a very powerful command that becomes part of many commands that you use. Let’s look at some examples.

If you have a file name ‘file7’ with the following in it.

1       4       5
3       4       5
34      4       56
2       2       2