Created
August 22, 2016 19:08
-
-
Save t0mmyt/534bde038358537d0b2d55ba3d94742c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addIfNotIn { | |
grep "${1}" ${2} >/dev/null 2>&1 || echo "${1}" | tee -a ${2} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment