You are on page 1of 1

Write a shell script to display the calendar for current month with date replace * or **depending on whether the

date is one digit or two digit.


2)

n=`date +%_d` cal >temp if [ $n -lt 10 ] then sed s/"$n"/*/g temp else sed s/"$n"/**/g temp fi

Output: $sh 2.sh Su Mn Tu Wd Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ** 19 20 21 22 23 24 25 26 27 28 29 30 31

15/06/2013

You might also like