I have a CSV file that has only 1 column, but has close to 1500 records.
I’d like to extract information from each record, e.g.,
“The sample battery has a Voltage: 11.1V, and capacity: 4500mAh”
I’d like to extract out 11.1 and place in another file, i.e., after “voltage: “, before “V”. If the record does not have “voltage: “, I would like to have a empty line in it.
I’m in a Linux environment, what’s the easiest way to do it?
Python
Will get you started with pulling data from a CSV file.
Apparently (based on comments) the file looks like this.
Which could be a 1-column CSV. Or a single row with bonus quotes. Let’s pretend it’s a 1-column CSV.
Something like that might be appropriate.