Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created June 16, 2010 13:09
Show Gist options
  • Save Sutto/440645 to your computer and use it in GitHub Desktop.
Save Sutto/440645 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [[ -z "$1" ]] || [[ -z "$2" ]] ; then exit 1 ; fi
if [[ -n "$(echo "$1" | awk "/${2}/")" ]] ; then exit 0 ; else exit 1 ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment