Last active
October 6, 2015 16:38
-
-
Save matin0728/3022994 to your computer and use it in GitHub Desktop.
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/bash | |
TEAM=/zhihuDev | |
GROUP=$TEAM/sa | |
YES=`echo 'aGF2ZWZpbmUK' |base64 -d` | |
SORRY=`echo 'c29ycnkK' |base64 -d` | |
RESULT=`echo 'aGV5LCBkbyB1IHdhbnQgam9pbiB1cz8gIHRyeSAhISBzZW5kIHlvdXIgcmVzdW1lIHF1aWNrbHksIAo=' |base64 -d` | |
read -t 15 -p "Enter u's name" you | |
read -t 15 -p "Is geek [Y/N]? " personality | |
read -t 15 -p "Skills:" skills | |
read -t 15 -p "Interests:" interests | |
ZhihuDev(){ | |
case $personality in | |
y|Y) | |
echo "personality: $YES" >> $GROUP/$you 2>&1 ;; | |
*) | |
echo $SORRY && exit ;; | |
esac | |
case $skills in | |
awk|nginx|mysql|nagios|keepalive|haproxy|kvm|puppet|debian|ubuntu|centos) | |
echo "skills: $YES" >> $GROUP/$you 2>&1 ;; | |
*) | |
echo $SORRY && exit ;; | |
esac | |
case $interests in | |
performance|hight\ availability|security|cluster|distributed) | |
echo "interests: $YES" >> $GROUP/$you 2>&1 ;; | |
*) | |
echo $SORRY && exit ;; | |
esac | |
echo "$RESULT $you" | |
} | |
ZhihuDev | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment