Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Output Redirection and Pipes

Info
  • Redirection of output: > vs >>

    • redirect sends a channel of output to a file.

    • You can redirect a file as input to a command using < and << (not looked at).

  • Using pipe “|’

    • A pipe passes standard output as the standard input to another command

  • Examples of the form: 

    • View a text file and pipe to grep.

    • Cat a list and sort by line.

    • Sort and then find unique items.

    • View folder contents and look for a specifically named name.

...

Redirection of output: > vs >>

...