bash substring matching


  1. #!/bin/bash
  2. [[ "$(hostname -s)" =~ $'dev' ]] && exit
  3. echo "we are not a dev host"

Comments

Popular posts from this blog

Openvpn and unbound combined break dig command

Stress Linux system: stress-ng

Google Nexus 4: permanent back panel glass repair for less than a penny