Splitting a column in a csv file in Bash

后端 未结 1 1570
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 08:22

I would like to extract values from the second column in my csv file and store the extracted values in a new column.

sample of my dataset:

page_name             


        
相关标签:
1条回答
  • 2021-01-27 09:25
    sed 's/[0-9][0-9]*_//' < a.csv  
    

    where a.csv is the file with your original data
    edited to add [0-9]

    0 讨论(0)
提交回复
热议问题