Ok...this is really bumming me out because it seems like it should be simple, but for some reason, I just can't get it...I've also googled and searched these forums, and haven't found exactly what I'm looking for...
I have a date in mm/dd/yyyy format in a variable...I need to extract the abbreviated name of the day of week from that variable...so I start with this:
10/18/2012
and end up with this:
Thu
To be very clear about what is messing me up, I know that to do this from the system date, I can just use `date '+%A'`, but I DON'T need the day of the system date...I need the day of a date input as a parameter and stored in a variable...and no I can't use `date --date...` Please help!
Will try the link you posted, bipinajith. Was hoping for an awk or perl one-liner, but sometimes we just don't get what we want, right?
As for the other two replies, as stated in the original post, I can not use `date --date ...` I also can not use `date -d ...` I wish it was that easy, but my understanding is that these two options are GNU only, and I don't have it.
:wall: