bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tr -d [:space:] removes the letter 'p'


From: Jim Meyering
Subject: Re: tr -d [:space:] removes the letter 'p'
Date: Sun, 17 Oct 2004 15:59:10 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]