هدف : سوییچ کردن بین دو پروکسی دلخواه که حالا من اولیو none در نظر گرفتم:
زبان: شل
#!/bin/sh
if [ "$HTTP_PROXY" = "" ]
then
export HTTP_PROXY="localhost:4001"
echo "http proxy is seted in localhost:4001"
elif [ "$HTTP_PROXY" = "localhost:4001" ]
then
export HTTP_PROXY=""
echo "http proxy is seted in none"
else
echo "http proxy not changed!because your http proxy is ($HTTP_PROXY) :-S"
fi