13 Features of Regular Expressions


13 Features of Regular Expressions
Nov 12, 2010, 21 :35 UTC (0 Talkback[s]) (880 reads)

[ Thanks to Andrew Weber for this link. ]

"Following is a summary of some of the major features of regular expressions.

"1. Supported by Linux/UNIX Utilities
Most commands will support at least the basic aspects of regular expressions. What this means is that as a tool enhancement regular expressions have important implications are are worth your time in learning. Three major utilities demonstrate the importance of regular expressions.
a. grep ? a line parsing tool that is based on regular expressions
b. awk ? a filed parsing tool based on matching text and using regular expressions
c. sed ? a stream editor which facilitates the modification of text streams

"Experience with these three tools or utilities is critical in the building of shell scripts.

"2. Reduces Evaluation Times
Because the use of regular expressions provides the ability to perform multiple tasks at one time, regular expressions save time and resources on a server. Instead of performing many passes over the same text in order to achieve one goal at a time, you can achieve many goals using regular expressions."

Complete Story

Related Stories:
How-To: Grep Tricks for Linux Users(Apr 29, 2010)
10 Tools To Add Some Spice To Your UNIX Shell Scripts(Apr 21, 2010)
New-line search & replace in OpenOffice.org Writer -- the lazy way(Apr 15, 2010)
Open-Source Software Shortcut, Excluding Directories From Grep(Mar 30, 2010)
Bash History: Display Date And Time For Each Command(Mar 14, 2010)
Unix Tip: Sed & Awk -- Still friendly after all these years(Mar 12, 2010)
Regular Expressions In grep(Feb 18, 2010)
Returning Values from Bash Functions(Sep 15, 2009)
Finding Things on Linux and Understanding Regular Expressions(Sep 14, 2009)







View the original article here

0 comments: