Aizer Danny-BDA023 <address@hidden> wrote:
> I have run into a weird scenario:
>
> echo "asdfp asdfp a" | tr -d [:space:]
>
> returns:
> asdf asdf a
>
> instead of:
> asdfpasdfpa
You need quotes to protect the brackets
from being interpreted by your shell:
$ echo "asdfp asdfp a" | tr -d '[:space:]'; echo
asdfpasdfpa