I would add that in Bash, you need to watch for the change in regex-quoting behavior between version 3.1 and 3.2:
http://stackoverflow.com/questions/218156/bash-regex-with-quotes ...if you are writing scripts that need to support both older and newer versions of Bash, though, you can use the "compat31" shell option to force consistent behavior across versions: shopt -s compat31 This is also mentioned in the regex portion of the ABS (another excellent resource for Bash scripters): http://www.tldp.org/LDP/abs/html/abs-guide.html#REGEXMATCHREF ~ Chris On Mon, Dec 10, 2012 at 10:10 AM, Neale Ferguson <[email protected]>wrote: > > http://scripting.linuxnix.com/2012/12/regular-expreesion-in-linux-bash-and.html > > Neale > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
