Skip to main content


developerWorks  >  AIX and UNIX | Linux  >

UNIX tips and tricks for a new user, Part 3: Introducing filters and regular expressions

Using grep, sed, and awk

developerWorks

Level: Intermediate

Tim McIntire (tm@timmcintire.net), Consultant, Freelance Writer

05 Dec 2006

Register now or sign in using your IBM ID and password.

Discover the power of UNIX® filters. In this tutorial, you'll learn about the grep family in depth, including the syntax of regular expressions in many UNIX utilities. You'll also find out more about the stream editor, sed, as well as examine the awk pattern scanning language through examples and explanations.

In this tutorial

  • Regular expressions

  • Searching files with grep

  • Editing files with sed

  • Using awk on the command line

Prerequisites

You need a basic understanding of the command line for this tutorial. For some parts of this tutorial, a working understanding of how input and output is handled in UNIX with stdin, stdout, and pipe is also helpful.


System requirements

Access to a user account on any computer running any UNIX-like operating system is all you need to complete this tutorial. UNIX-like operating systems include the IBM AIX® operating system, Linux, Berkeley Software Distribution (BSD), Mac OS® X (using Terminal to access the command line), and many others.



Duration

2 hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community


More in this series:
UNIX tips and tricks for a new user