So I need to create a shell script that can take as input a numeric day, month and year and output the day of the week for the input date.
So let's say, I input "programname 19 10 2006" it should output Thursday... I tried messing around with the grep and awk commands, but I can't get it to work.
[elee@uxprod elee]$ bash Zoltar -D 1960 09 09
Zoltar: line 116: integer: command not found
Zoltar: line 81: integer: command not found
Zoltar: line 83: set: -A: invalid option
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
Zoltar: line 91: ((: 09: value too great for base (error token is "09")
Zoltar: line 96: ((: 09: value too great for base (error token is "09")
Zoltar: line 110: print: command not found
Zoltar: line 123: ((: 09: value too great for base (error token is "09")
Zoltar: line 131: ((: 09: value too great for base (error token is "09")
Zoltar: line 135: print: command not found
Zoltar: line 142: integer: command not found
Zoltar: line 143: set: +A: invalid option
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
Zoltar: line 154: print: command not found