=~ 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

tomcat catalina coyote jasper cluster

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