tr Snippets to use tr command How to strip multiple spaces to one using sed? First output: ls /bin | grep kill -rwxr-xr-x 1 root wheel 134352 Dec 2 2022 kill Solution: ls /bin | grep kill | tr -s " " Output: -rwxr-xr-x 1 root wheel 134352 Dec 2 2022 kill