I am getting date in one of file in the format "Fri Feb 25 16:07:17 UTC 2022" Which I want to convert it to "2022-02-25 16:07:17".
However I am able to do it using Python but its being long process to call python from shell script and getting that variable back.
Just I am looking for simple option to convert "Fri Feb 25 16:07:17 UTC 2022" it to "2022-02-25 16:07:17" using bash shell script.
date
orpython
are both external tools.