grep and split stderr and stdout