Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- proxycfg
- freebsd
- application security
- endpoint security
- Kibana server is not ready yet
- pfsense
- GitLab
- Proxy
- macos
- hardening
- 보안양파
- Elasticsearch
- docker
- ssh key 배포
- x-pack
- xe guest utilities
- elastic stack
- miniconda
- Windows
- ELASTIC
- PlayBook
- 로그인불가
- bash
- 한글가이드
- ansible
- centos 8
- XCP-ng
- G-suite
- Kibana
Archives
- Today
- Total
선 밖에 선 자유인
csv 텍스트 처리 본문
여러개의 라인,필드가 있는 csv 파일의 경우 텍스트 처리
- 필드 체크하여 중복된 필드가 포함된 라인 제거 후 출력 (4번째 필드 기준)
$ awk -F',' '!x[$4]++ {print $0}' <file>
- 정력하면서 출력
$ sort -u -t ',' -k4,4 <file>
- 특정 필드를 기준으로 sort
sort -t ',' -k 3 <file>
or
sort -t ',' -k 3 -r <file>
Comments