I have a file with different data where everyline consists of date in yyyyMMdd format I need the same file but that particular date need to be changed like ddMMyyyy.
Example.
Data is as below
Neeraj hyderbad 20221017
Pavan. Secunderabad 20220911
Data needed as below
Neeraj hyderbad. 17102022
Pavan. Secunderabad 11092022
The date starts exactly at same place every line like fixed length is the file format. Please suggest me the ans using awk command or python .