I am trying to extract a specific field in a specific line of a CSV file.
I'm able to do it according to the number row but sometimes the row number of the file will change so this is not that flexible.
I wanted to try and do it to extract a specific name before the field I'm interested in.
CSV File
[Header]
File,5
Researcher Name,Joe Black
Experiment,Illumina-Project
Date,05/02/2021
Pipeline,RNA_Pipeline
In this case, I want to extract the researcher and the Experiment Name from the CSV file:
Desired Output from CSV File
Joe Black Illumina-Project
The following works but as I said it is not as flexible:
awk -F',' 'NR == 3 { print $2 }' test.csv
So I was trying to do something like from what I've found but have not been successful
awk -F',' 'Line == "Researcher Name" { print $1 }' test.csv