It's for sed, replace Q wit G and then replace avarage with average