Bash Regular Expressions

When working with regular expressions in a shell script the norm is to use grep or sed or some other external command/program.

Since version 3 of bash (released in 2004) there is another option: bash's built-in regular expression comparison operator "=~".

read more


 

More related items

From Subversion to GIT (and beyond!) - till
Here's a more or less simple way to migrate from Subversion to GIT(hub), this includes mapping commits and tags and what not! Authors If multiple people congtributed to your project, this is...

Robert Basic's Blog: Benchmarking pages behind a...
Robert Basic has a recent post showing you how to use the "cookie jar" functionality included with Apache's "ab" benchmarking tool to get behind your PHP-based login with a simple curl and...

Sameer Borate's Blog: Grabbing the referrer search...
On his blog today Sameer Borate has a new post with a handy bit of code you can use to find the keywords from a search engine referral to help with tracking how visitors have come to your...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com