On 24.04.2012 15:10, Konstantin Khlebnikov wrote: > printf() has standard flag for adding "0x" prefix before hexadecimal integer. > > MOD='[-+]\?[0-9]*.\?[0-9]*[lL]*' > git grep -l "0x%#${MOD}x" | xargs -n1 sed -e "s/0x%#\(${MOD}\)x/%#\1x/g" -i Please, reply with correct command. -- Best regards, Stanislav Kinsbursky