Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Linuxtopia: Awk Learn-to

Nov 08, 1999, 18:52 (0 Talkback[s])
(Other stories by Dave)

[ Thanks to Dave for this link. ]

"This document exists to educate the reader about awk....Before using this document, the reader should be familiar with basic Linux commands."

"Awk is a scripting language for Unix/Linux systems. It has a GNU counterpart, called gawk, which is fully compatible with awk. Awk is very useful for parsing text files, and it can also be used to simplify maintenance tasks. It can read either from a file or from standard input. The general idea of awk is that it takes the input line by line, checks it for a specified test, and performs certain operations on the lines where the test evaluates to true. These tests can either be string- matching (with regular expressions) or mathmatical (A<B). Awk also takes each field of the line, and seperates it into a series of variables named $1, $2, etc... A field is any text seperated by a space. The $0 variable signifies the entire line."

Complete Story

Related Stories: