Category: Regular Expressions

Unix Regular Expressions Tutorials and Examples

SED Tutorial with examples

SED Tutorial with examples

SED: SED is a powerful stream editor. SED Options : -i : does in-place replacement -n : no printing -f : scriptname ( when there are large number of sed commands) Syntax: sed command...

Awk Tutorials and examples

Awk Tutorials and examples

Using Awk to sum the list of output: ps aux | awk ‘{sum +=$4}; END {print sum}’ Print Line that match a pattern: awk ‘/string1/ > /string2/’  filename Print specific fields : awk ‘{print...