O'Reilly logo

Introduction to Unix and Shell Programming by M. G. Venkateshmurthy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6

REGULAR EXPRESSIONS—grep FAMILY OF COMMANDS AND THE sed

Chapter Objectives
  • The meaning of regular expressions
  • Metacharacters that are used to construct regular expressions and the special meanings associated with them
  • Study character class
  • Use of regular expressions to search for required lines or records
  • The grep family of commands—grep, egrep and fgerp
  • The stream editor
    • Operational mechanism of sed
    • Syntax of a sed command and different ways of giving a sed command
    • The meaning of line and context addressing
    • Giving multiple instructions
    • Text manipulation using sed commands

Quite often a Unix user is involved in searching one or more records from a database or one or more lines from a text file. Such a search could be for finding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required