I want to replace American time to French time in PHP files from command line.
From date('m/d/Y \a\t h:i:s A'
to date('Le d/m/Y à G:i:s'
I tried the following sed command :
sed -i "date('m/d/Y \a\t h:i:s A'&date('Le d/m/Y à G:i:s'&g" /path/file.php
It doesn't work. I think the problem comes from the antislashs in the source string \a\t
I already checked this question : sed command to replace string with slashes
I already tried to change the delimiters or escpae the anti-slashs with \\
.
But nothing works. Any help is welcome.