Fixed grammar + sed syntax