====== Linux cut ====== * [[http://www.thegeekstuff.com/2013/06/cut-command-examples/|10 Practical Linux Cut Command Examples to Select File Columns]] * [[https://shapeshed.com/unix-cut/|Linux and Unix cut command tutorial with examples]] echo "hello world" | cut -f 2 -d ' ' # 공백을 구분자로 하여 2번째 필드만 출력 # 문자 기반으로 선택. echo '♣foobar' | cut -c 1,6 # 1번째, 6번째만 출력 ♣a echo '♣foobar' | cut -c 1-3 # 1~3번째 문자 선택 ♣fo # KakaoTalk.exe 찾아서 kill ps -e | grep KakaoTalk | cut -c 1-5 | xargs kill ====== tab delimiter ====== * tab 문자를 구분자로 사용하려면 다음과 같이 한다. cut -d$'\t' ... ===== 참조 ===== * [[https://bash.cyberciti.biz/guide/Cut_command|Cut command - Linux Shell Scripting Wiki]]