bash regex matching
Incredibly, Bash allows you to do regular expression comparisons with the =~
operator that Ruby and Perl use:
$ if [[ "foo" =~ f.* ]]; then
echo match
fi
match
Incredibly, Bash allows you to do regular expression comparisons with the =~
operator that Ruby and Perl use:
$ if [[ "foo" =~ f.* ]]; then
echo match
fi
match