출력 예

출력 예

어제 에서 다음 패키지를 업데이트한 후 debian wheezy명령 tr이 작동을 멈췄습니다.

Start-Date: 2016-02-16  23:10:06
Commandline: apt-get dist-upgrade
Upgrade: libkrb5-3:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libk5crypto3:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libgraphite2-2.0.0:amd64 (1.1.3-1, 1.3.5-1~deb7u1),
libc-bin:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
libc6-i386:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
libgssrpc4:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
iceweasel-l10n-de:amd64 (38.6.0esr-1~deb7u1, 38.6.1esr-1~deb7u1),
locales:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
iceweasel:amd64 (38.6.0esr-1~deb7u1, 38.6.1esr-1~deb7u1),
libkrb5support0:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
multiarch-support:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
libgcrypt11:amd64 (1.5.0-5+deb7u3, 1.5.0-5+deb7u4),
libkadm5clnt-mit8:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libkadm5srv-mit8:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libc6-dev:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
krb5-locales:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libkdb5-6:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libgssapi-krb5-2:amd64 (1.10.1+dfsg-5+deb7u6, 1.10.1+dfsg-5+deb7u7),
libc-dev-bin:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
libc6:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10),
libc6-dev-i386:amd64 (2.13-38+deb7u8, 2.13-38+deb7u10)
End-Date: 2016-02-16  23:10:28

출력 예

> echo abcdefgh | tr -d [:alnum:]
bcdefgh

> echo abcdefgh | tr -Cd [:alnum:]
a

> type tr
tr is /usr/bin/tr

답변1

이라는 파일이 있나요 a?

$ echo [:alnum:]

$ touch a
$ echo [:alnum:]
a

문자열을 인용하세요.

$ echo '[:alnum:]' | tr -d '[:alnum:]'
[::]

관련 정보