Category Archives: Awk Command

AWK Command Tutorial: Common Usage Examples

AWK tutorial: awk [-F] print example

– awk print last field
– print line number per line
– print specific columns
– use -F specifies a delimiter Continue reading

Posted in Awk Command, Text Processing | Tagged , , , , | Comments Off on AWK tutorial: awk [-F] print example

AWK tutorial: awk remove last character

awk remove last character use awk length and substr functions

Posted in Awk Command, Text Processing | Tagged , , , | Comments Off on AWK tutorial: awk remove last character

AWK tutorial: awk save to file

AWK save to file AWK append to file

Posted in Awk Command, Text Processing | Tagged , , , | 1 Comment

Awk tutorial: awk man

awk man

Posted in Awk Command, Text Processing | Tagged , | 2 Comments

AWK tutorial: awk newline character

How to use Awk print out a newline character in a string ???

Posted in Awk Command, Text Processing | Tagged , , | 2 Comments

AWK tutorial: awk workflow

AWK follows a simple workflow − Read, Execute, and Repeat. BODY block This block is the core of the awk command. It consists of three parts. Read AWK reads a line from the input stream (file, pipe, or stdin) and … Continue reading

Posted in Awk Command, Text Processing | Tagged , , , | 8 Comments

awk system batch operation

1. use awk command batch creation of files

awk ‘BEGIN {do {++i; system(“touch file_num_” i “_test”) } while (iContinue reading

Posted in Awk Command, Text Processing | Tagged , , | 1 Comment