I need to pull the day given a specific date. For example, I will provide the date format of 2021_11_06 and the shell will provide "Sat" without quotes.
I know that I can get the current day by: $ date '+%a'
However, I need to provide the day given a specified date.
Thank you in advance for your input.