Created
February 7, 2013 09:34
-
-
Save timshen91/4729838 to your computer and use it in GitHub Desktop.
./this.sh < $goagent/local/proxy.pac > out # "*" is reserved for matching any string. NO WARRANTY.
This file contains 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
#!/bin/sh | |
sed 's|^.*if(\(.*\)/i\.test(url)) *return.*|\1|g' | | |
sed 's|^[^:]*:||' | | |
sed 's|\\\(.\)|\1|g' | | |
sed 's|\.\*|*|g' | | |
sed 's|^[^a-zA-Z0-9]*||' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment