Forked from matin0728/ZhiHu_Operation_Engineer_JD.sh
Created
September 4, 2012 13:31
-
-
Save gaomd/3621171 to your computer and use it in GitHub Desktop.
some `minor` fix
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="havefun" | |
SORRY="sorry" | |
read -t 5 -p "Enter ur name" you | |
read -n1 -p "Is geek? [Y/N]" personality | |
read -t 5 -p "Skills:" skills | |
read -t 5 -p "Interests:" interests | |
ZhihuDev(){ | |
do | |
case $personality in | |
geek) | |
echo "personality: $YES" >> $GROUP/$you 2>&1 ;; | |
*) | |
return $SORRY ;; | |
esac | |
case $skills in | |
awk|nginx|mysql|nagios|keepalive|haproxy|kvm|puppet|debian|ubuntu|centos) | |
echo "skills: $YES" >> $GROUP/$you 2>&1 ;; | |
*) | |
return $SORRY ;; | |
esac | |
case $interests in | |
performance|hight\ availability|security|cluster|distributed) | |
echo "interests: $YES" >> $GROUP/$you 2>&1 ;; | |
*) | |
return $SORRY ;; | |
esac | |
done | |
} | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment