Awk Tutorial and Regular Expressions

Awk is a tool for processing text files, or data that is treated as text.

For some stuff I have been working on, I tend to use Awk a lot to filter down text being returned from another program (like a ls command).

Here is a nice tutorial on Awk.

Also, when using regular expressions (regexp, or regex) with Awk, here are a few helpful reminders and links.

. matches any character
* zero or more repetitions of the previous character or expression
? zero or one occurrence of the previous expression
+ one or more occurrences of the previous expression

Regexp cheat sheet.

Test regular expressions.

Regexp website (tutorials and more)

Another Regexp tutorial

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s