Understand Awk Variables with 3 Practical Examples

This article is part of the on-going Awk Tutorial and Examples series. Like any other programming languages, Awk also has…

Continue Reading →

Quickly search and replace string with Regular expression in multiple files using perl

for i in *; do perl -p -w -e \’s/a(.*)b.*/d$1e/g\’  $i > temp/$i; done for i in *; do perl…

Continue Reading →

grep -v with multiple patterns.

$ sed \’/test/{/error|critical|warning/d}\’ somefile If you wanted to do all in one command, you could go w/ sed instead View…

Continue Reading →