Extracting specific variables from a fixed-width data file - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Extracting specific variables from a fixed-width data file

lunabelle22alunabelle22a Posts: 1Member
I have a data file with a 6 fixed-width columns. These columns alternate between variables (width=25) and their corresponding values (width=15). There are a total of 125 variables, however I only need 6 of them and their values for future plotting purposes.

How do I extract ONLY the variables and values i need from this rather large table and print them in a plottable format? Is there a script I can use that will find/locate specific keys in a data file?

Thank you!
Sign In or Register to comment.