4

STANDARD I/O, REDIRECTION PIPES AND FILTERS

Chapter Objectives
  • The concept of standard I/O
  • Redirecting the input and output
  • Connecting commands using pipe
  • The meaning of a filter
  • Getting multiple copies of the output using the tee command
  • Terminal and trash special files
  • Splitting the files vertically and joining files vertically
  • Sorting files on different basis
  • Handling duplicate entries using the uniq command
  • Translation of characters using the tr command

Unix has quite a large number of commands. Initially beginners will be working mostly with individual commands for most of the time. Although every command is effective and efficient, nothing useful can be done with just individual commands. Any meaningful task needs more than one ...

Get Introduction to Unix and Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.