move sed file to end of command