back
toc
next
Table of contents
Cover
Regular Expressions
Atoms of REs
Pieces of REs
Example 1: Simple REs
Example 2: Real numbers (simple)
Example 2: Real numbers (character class)
Example 2: Real numbers (catch all
Basic Regular Expressions
Basic Regular Expressions (real numer)
Basic Regular Expressions (real number in shell)
sed
sed Synopsis
Addresses
Commands (s//)
Commands (more than one command)
Commands (g-Flag of s//; y//)
Commands (dos/unix files)
Commands (comments, program in a file)
Commands (\{ and \})
Commands (n)
Example 1 (REs are greedy)
Example 1 (REs are greedy)
Example 2 (Reference: &)
Example 2 (Reference: \x)
Example 2 (Reference: \x in a BRE)
Space Balls
Space Balls (Example first-last)
Space Balls (Example tac)
Space Balls (Example tac improved)
Space Balls (Example counter)
Branches
Example (K/K++ comments)
awk
Program Structure
Program Structure (more {})
Use of variables
Example 1 ($n)
Example 1 (FS, OFS)
Example 1 (NF, RS, ORS)
Example 2 (wc -w)
Example 2 (sub)
Example 2 (simple calculator)
Example 2 (rotating the input-column)
Control Structures
Onedimensional Arrays
Multidimensional Arrays
Defining Functions
I/O
Passing parameters to awk
Passing parameters to awk
Passing parameters to awk
Statistic of password generators
ed
Some Commands
Example (invocation, here-document of the shell)
Example (g/re/p)
Useful Readings
Table of contents