Awk Mode
Sed
-
sed
-
Start a sed script.
-
-e
-
Expression to evaluate.
-
-f
-
Use the following file.
-
-n
-
Only print matches once. Avoid double line output.
-
'
-
Single quote to start sed script.
-
"
-
Double quote to invoke shell interpretation of sed script.
Awk
-
awk
-
Start an Awk command.
-
-f
-
Use file specified after option.
-
-F
-
Data file field separator.
-
-v
-
Assign a value to variable.
-
BEGIN
-
Insert a begin structure.
-
END
-
Insert an end structure.
-
'
-
Single quote to start AWK script.
-
"
-
Double quote to invoke shell interpretation of AWK script.
Sed Operators
-
s/
-
Substitute regular expression operator.
-
y/
-
Transform operator - y/abc/ABC/g.
-
/
-
Expression separator - s/<\/html>/\vfill\eject/.
-
!
-
Alternative expression separator - s!