I have some command which produces output with no new line at the end,
like this

```
Myprompt$ somecmd
dksfjdl
dsfjdlkfj
dsfjdkfj
dfjdkfjMyprompt$

```

Currently I overcome this by `somecmd | sed 's/$/\n/' | tr -s '\n'`
Is there a better way to do this?