Pipes, Grep, Sort – Linux Tutorial 9

Video is ready, Click Here to View ×

This tutorial explains pipes , grep and sort commands with examples


  1. error and fruits are the random files. I am trying to redirect the lines which do not contain small 'a' and want to sort if in reverse order. However, the command is not working

    NOT WORKING – cat fruits | grep -v a > error | sort -r error
    WORKING – cat fruits | grep -v a | sort -r > error

    WHY ?? @GURU99

  2. The cat command in this tutorial is initially used to see the contents of the fruits file and the subsequent change to it's output as it passes through grep via a pipe. grep "Avocado" fruits or "fruits" is the syntax if you are in the same directory as the fruits file otherwise it is grep "Avocado" "/path/to/fruits file" if you are not.

  3. very good except the very annoying loud background music. I cant see the point in music while trying to learn something. maybe turn it down to a minimum. otherwise thumbs up for all the linux videos

Leave a Reply

Your email address will not be published.