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
Go to list of users who liked
More than 5 years have passed since last update.
#! /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
Register as a new user and use Qiita more conveniently
Go to list of users who liked