Unix/Linux Go Back    



Need help creating shell script with output that has 2014 calendar and 2 text items from a"fortune"

Homework & Coursework Questions




Kindly Note - This is a Single User Post by Forum Member vbe Regarding:
Need help creating shell script with output that has 2014 calendar and 2 text items from a"fortune".
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 07-02-2013
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 22 September 2017, 2:59 AM EDT
Location: Switzerland - GE
Posts: 6,453
Thanks: 283
Thanked 549 Times in 511 Posts
hint:

Code:
n12:/home/vbe/bash $ d=`date '+%Y'`
n12:/home/vbe/bash $ echo $d
2013
n12:/home/vbe/bash $ echo $((++d))
2014

typing $((++d)) is asking the shell to execute the value, 2014 is not a command...