RosettaCodeData/Task/Regular-expressions/UNIX-Shell/regular-expressions-1.sh
2023-07-01 13:44:08 -04:00

4 lines
91 B
Bash

s="I am a string"
if [[ $s =~ str..g$ ]]; then
echo "the string ends with 'str..g'"
fi