sed replacement of slice ops