group grep and sed to one sed