Bash
正規表現

bashで正規表現マッチング

More than 3 years have passed since last update.
regex_if.sh
#! /bin/bash

for x in one one_test two two_test three three_test four four_test
do
    if [[ ! $x =~ .*test ]]; then
        echo $x
    fi
done