We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find . -name pmonitor_access.\*.gz -print0 | xargs -0 zgrep 200 | awk '{print $9}' | cut -f1 -d"?" |sort |uniq -c
// -print pmonitor_access.20211215.gz pmonitor_access.20211214.gz pmonitor_access.20211213.gz pmonitor_access.20211212.gz pmonitor_access.20211211.gz pmonitor_access.20211210.gz // -print0 pmonitor_access.20211215.gz pmonitor_access.20211214.gz pmonitor_access.20211213.gz pmonitor_access.20211212.gz pmonitor_access.20211211.gz pmonitor_access.20211210.gz
awk 'pattern' filename
홍 길동 3324 5/11/96 50354 임 꺽정 5246 15/9/66 287650 이 성계 7654 6/20/58 60000 정 약용 8683 9/40/48 365000 $ awk '{print $1}' file > 홍 임 이 정
aaa?bbb?ccc ddd?eee?fff $ cut -f1 -d"?" > aaa ddd
// 원본 파일 4 b 3 d 2 c 2 a 1 e 5 f // k1 : 첫 번째 필드 기준 정렬(숫자) # sort -k1 file 1 e 2 a 2 c 3 d 4 b 5 f // k2 : # sort -k2 file 2 a 4 b 2 c 3 d 1 e 5 f
The text was updated successfully, but these errors were encountered:
No branches or pull requests
find 명령어 옵션
pmonitor_access..*gz
-print vs -print0
xargs
grep, zgrep
awk
홍 길동 3324 5/11/96 50354 임 꺽정 5246 15/9/66 287650 이 성계 7654 6/20/58 60000 정 약용 8683 9/40/48 365000 $ awk '{print $1}' file > 홍 임 이 정
cut
aaa?bbb?ccc ddd?eee?fff $ cut -f1 -d"?" > aaa ddd
sort
uniq
References
The text was updated successfully, but these errors were encountered: