I have a bash script that takes user-inputed dates in this format:
dd.mm.yyyy
and saves it as a variable $date
Now I need to modify this variable to be in this format: yyyymmdd
for further use.
So no more dots and back to front for the values between the dots.
Is there an easy way to do this kind of thing with sed
for example?