본문 바로가기
Linux/Shell

tr 명령어 옵션

by Sondho 2020. 11. 20.
-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.

 

'Linux > Shell' 카테고리의 다른 글

맥 os - SSH환경에서 화면 분할하기 (tmux)  (0) 2021.01.22
cut 명령어 옵션  (0) 2020.11.20
group 명령어  (0) 2020.11.19
id 명령어 옵션  (0) 2020.11.19
find 명령어 옵션  (0) 2020.11.19

댓글