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   -   Original Discussion by dandanhelpmeman
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 21 November 2017, 4:28 PM EST
Location: Switzerland - GE
Posts: 6,479
Thanks: 289
Thanked 553 Times in 515 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...