First page Back Continue Last page Summary Graphic
Awk
Powerful scripting language available on all Unix systems designed to manipulated streams. Very similar in syntax to the C language.
e.g.
awk '{
printf("This line, %d, contains: %s,", NR, $0);
printf("First word is, %s\n", $1);
}' <<HERE-TAG
hello [1]
there [2]
1 [3]
HERE-TAG
--> This line, 1, contains: hello [1], First word is, hello
--> This line, 2, contains: there [2], First word is, there
--> This line, 3, contains: 1 [3], First word is, 1
Notes: