O'Reilly logo
  • Brian Becker thinks this is interesting:

In this example, the “stream editor” sed is used to print the fifth line from the /etc/passwd file. The sed utility is a very powerful utility for filtering text from text files (like grep), but it has the benefit that it also allows you to apply modifications to text files, as shown in the following example:


Cover of Red Hat RHCSA/RHCE 7 Cert Guide: Red Hat Enterprise Linux 7 (EX200 and EX300)


fifth column or field, not line