Find value from one csv in another one (like vlookup) in bash (Linux)

前端 未结 4 1960
猫巷女王i
猫巷女王i 2021-01-03 16:38

I have already tried all options that I found online to solve my issue but without good result.

Basically I have two csv files (pipe separated):

file1.

4条回答
  •  春和景丽
    2021-01-03 17:21

    cut -d\| -f7 file1.csv|while read line
    do 
      grep $line file1.csv|cut -d\| -f3
    done
    

提交回复
热议问题