Linux/Shell

tr 명령어 옵션

Sondho 2020. 11. 20. 01:14
-C 문자열1의 문자 집합을 보완하면 "-C ab"은 "a"와 "b"를 제외한 모든 문자를 포함한다.
-c C와 동일하지만 문자열1의 값 집합을 보완한다.
-d 입력에서 문자열1의 문자를 삭제한다.
-s 입력의 마지막 피연산자에 나열된 문자( 문자열1 또는 문자열2)의 여러 발생을 문자의 단일 인스턴스로 압축한다.  이것은 모든 삭제와 번역이 완료된 후에 발생한다.
-u 모든 출력이 버퍼링되지 않도록 보장.

-C Complement the set of characters in string1, that is ``-C ab'' includes every character except for `a' and `b'.
-c Same as -C but complement the set of values in string1.
-d Delete characters in string1 from the input.
-s Squeeze multiple occurrences of the characters listed in the last operand (either string1 or string2) in the input into a single instance of the character.  This occurs after all deletion and translation is completed.
-u Guarantee that any output is unbuffered.