Это оператор сопоставления регулярного выражения.
Из справочной страницы bash
:
An additional binary operator, =~, is available, with the same
precedence as == and !=. When it is used, the string to the
right of the operator is considered an extended regular
expression and matched accordingly (as in regex(3)). The return
value is 0 if the string matches the pattern, and 1 otherwise.
См. Справочную страницу bash
для получения дополнительных сведений (выполните поиск по = ~
)