Created
September 11, 2012 00:55
-
-
Save hansstimer/3695166 to your computer and use it in GitHub Desktop.
Revisions
-
hansstimer created this gist
Sep 11, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/sh set -o errexit foo="a 1a b c d e" bar="a b d e f g" for x in $bar do if ! [[ "$foo" =~ (^|[[:blank:]])$x([[:blank:]]|$) ]]; then echo $x fi done