csv search and print

A

axjacob

I have a csv file containing lot of rows & columns. I wanted to search thru the
heading for each column for a string and then print all the headings and the
corresponding rows if a match is found.

Any advise?

Thanks
 
J

John Machin

I have a csv file containing lot of rows & columns. I wanted to search thru the
heading for each column for a string and then print all the headings and the
corresponding rows if a match is found.

Any advise?

1. Clarify your requirements: "corresponding rows" ... corresponding
to what? How many rows/columns is a "lot"? "I have a csv file" ...
only one? "search thru the heading for each column for a string" is
open to misinterpretation of various kinds :)
2. Write your script.
3. Ask a specific question if you have a problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top