=~ operator

A feature new since bash 3 is the =~ operator, which acts much like its perl equivalent

This means that you can identify file names
that match the pattern *.deb by checking for [[ $pkgname =~ .*\.deb ]]. Note that the doublebracket
syntax [[ ... ]] is required.

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all