cal扩展练习2

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/bin/bash
case $1 in
	"Jan"|"January" )
		value1=1;;
	"Feb"|"February" )
		value1=2;;
	"Mar"|"March" )
		value1=3;;
	"Apr"|"April" )
		value1=4;;
	"May" )
		value1=5;;
	"Jun"|"June" )
		value1=6;;
	"Jul"|"July" )
		value1=7;;
	"Aug"|"August" )
		value1=8;;
	"Sep"|"September" )
		value1=9;;
	"Oct"|"October" )
		value1=10;;
	"Nov"|"November" )
		value1=11;;
	"Dec"|"December" )
		value1=12;;
esac
case $2 in
	"Jan"|"January" )
		value2=1;;
	"Feb"|"February" )
		value2=2;;
	"Mar"|"March" )
		value2=3;;
	"Apr"|"April" )
		value2=4;;
	"May" )
		value2=5;;
	"Jun"|"June" )
		value2=6;;
	"Jul"|"July" )
		value2=7;;
	"Aug"|"August" )
		value2=8;;
	"Sep"|"September" )
		value2=9;;
	"Oct"|"October" )
		value2=10;;
	"Nov"|"November" )
		value2=11;;
	"Dec"|"December" )
		value2=12;;
esac
cal $value1 $3;
cal $value2 $3;