Today I Learned
  • Introduction
  • Problem Solving
    • leetcode
      • 1. Two Sum
        • CPP
        • Java
        • JavaScript
        • Kotlin
        • Python
    • contest
      • google code jam
  • developer
    • ansible
    • python
      • line_by_line
      • config
        • yaml
        • configparser
  • linux
    • cut
  • Programming Languages
    • javascript
      • array
      • base64
      • canvas
      • date
        • moment.js
      • jquery
      • json
      • jsplumb
      • konva
      • nodejs
      • react
      • string
    • kotlin
      • 2 코틀린 기초.md
  • spring framework
    • spring boot
  • game
    • ingress
    • Rockman
      • Rockman X 1
      • Rockman X 2
      • Rockman X 3
  • database
    • mysql
  • me
    • resume
      • experience
      • extracurricular_activities
Powered by GitBook
On this page
  • tab 을 delimiter 로 사용하는 방법
  • References

Was this helpful?

  1. linux

cut

PreviouslinuxNextProgramming Languages

Last updated 5 years ago

Was this helpful?

tab 을 delimiter 로 사용하는 방법

사실 tab 은 기본 delimiter 이기 때문에 별도로 지정 해 줄 필요가 없다.

-d delim
         Use delim as the field delimiter character instead of the tab
         character.
cut -f2

Ctrl + v 누르고 Tab 누르면 tab 이 입력 된다.

cut -f2 -d'    '

$'\t' 를 이용하는 방법도 있다.

cut -f2 -d$'\t'

References

cut(1)
How to define 'tab' delimiter with 'cut' in BASH?