본문 바로가기
Linux/Shell

cut 명령어 옵션

by Sondho 2020. 11. 20.
-b list list는 바이트 위치를 지정한다.
-c list list는 문자 위치를 지정합니다.
-d delim 탭 문자 대신 필드 구분 기호로 구분 기호를 사용하십시오.
-f list 목록은 입력란에 필드 구분 기호 문자로 구분하여 필드를 지정한다( -doption 참조).  출력 필드는 필드 구분 기호 문자의 단일 항목으로 구분된다.
-n 멀티바이트 문자를 분할하지 마십시오.  문자는 적어도 하나의 바이트를 선택한 경우에만 출력되며, 0 이상의 선택되지 않은 바이트의 접두사 뒤에 문자를 형성하는 나머지 바이트가 선택된다.
-s 필드 구분 기호 문자가 없는 줄 표시 안 함  지정하지 않는 한 구분 기호가 없는 줄은 수정되지 않은 상태로 전달된다.

-b list The list specifies byte positions.
-c list The list specifies character positions.
-d delim Use delim as the field delimiter character instead of the tab character.
-f list The list specifies fields, separated in the input by the field delimiter character (see the -d option.)  Output fields are separated by a single occurrence of the field delimiter character.
-n Do not split multi-byte characters.  Characters will only be output if at least one byte is selected, and, after a prefix of zero or more unselected bytes, the rest of the bytes that form the character are selected.
-s Suppress lines with no field delimiter characters.  Unless specified, lines with no delimiters are passed through unmodified.

 

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

tmux - alias, sh를 이용하여 편리하게 사용하기  (0) 2021.01.22
맥 os - SSH환경에서 화면 분할하기 (tmux)  (0) 2021.01.22
tr 명령어 옵션  (0) 2020.11.20
group 명령어  (0) 2020.11.19
id 명령어 옵션  (0) 2020.11.19

댓글