Regular Expressions in Linux Explained with Examples

Regular expressions (Regexp)is one of the advanced concept we require to write efficient shell scripts and for effective system administration. Basically regular expressions are divided in to 3 types for better understanding. 1)Basic Regular expressions 2)Interval Regular expressions (Use option -E for grep and -r for sed) 3)Extended Regular expressions (Use option -E for grep and -r for sed) Some FAQ's before starting Regular expressions What is a Regular expression? A regular expression is a concept of matching a pattern in a given string. Which commands/programming languages support regular expressions? vi, tr, rename, grep, sed, awk, perl, python etc. Basic Regular Expressions...

Read More