Skip to content
Advertisement

How to replac rows of one csv file from another csv file based on a condition in linux(using awk or any other)?

first.csv

JavaScript

second.csv

JavaScript

required output.csv

JavaScript

How to achieve above scenario like replace or adding rows from one CSV to another CSV file based on a condition in linux. Thanks in advance .

I tried below command

JavaScript

but its not working . Replacing same record for all rows which satisfies the condition.

Advertisement

Answer

Another awk

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement