Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bash-regex-match.sh 153B

1234567891011
  1. #!/bin/bash
  2. server='# foo';
  3. if [[ $server =~ ^# ]] ; then
  4. echo 'got a comment'
  5. fi
  6. server='foo';
  7. if [[ $server =~ ^# ]] ; then
  8. echo 'no comment'
  9. fi