Skip to content

Instantly share code, notes, and snippets.

@yuchan
Created May 29, 2014 05:47
Show Gist options
  • Save yuchan/df188cbb353e1d97ccd3 to your computer and use it in GitHub Desktop.
Save yuchan/df188cbb353e1d97ccd3 to your computer and use it in GitHub Desktop.
#!/bin/bash
#today's coding fragment
string="path-to-something:$PATH"
if [[ $PATH =~ "path-to-something" ]]; then
echo "\$PATH contains it"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment