invocation of sed was wrong