insert a character in line using sed/awk
Hello !
I have a string as below
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
Want the above string to be modified as
LogFormat "%h %l %u %D %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
inserting %D after %u in the string
Please suggest.
|