Vivekanand Mathapati
Thursday, 21 May 2015
Write a shell script to display the calendar for current month with current date replaced by * or ** depending on whether the date has one digit or two digits.VTU UNIX LAB 5b
dt=`date | tr -s " " | cut -d " " -f 3`
cal -h | sed "s/\<$dt\>/**/"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment