I'm trying to put the date an aws user was created into a more user friendly format in a CSV file using this command. I tried:
aws_user_friendly_date=$(date --date "$aws_user_create_date" '+%B %d\\, %Y')
aws_user_friendly_date=$(date --date "$aws_user_create_date" '+%B %d\, %Y')
I want to comment out the comma, so it formats correctly in the CSV file.
But it doesn't work and I get this as the output:
AWS Account Creation Date: June 15\\, 2017
AWS Account Creation Date: June 15\, 2017
And if I leave the comma so that it's not escaped, the CSV file puts the year into it's own column. How can I show the escape the comma correctly so that it doesn't confuse a CSV file?