Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Extract from ASCII Files w/ Perl

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts
I have multiple emacs/ASCII files named iron-Fe17-4.pro, iron-Fe17-4.2.pro,
iron-Fe17-4.4.pro. . . .iron-Fe17-9.2.pro in directory desktop/programs/data. Each file has columns of data separated by tabs (but below I wrote it with spaces), for example:

depth Fe1 Fe2 Fe3 Fe4 Fe5 Fe6 Fe7
1. 1.2e3 1.4e7 5.3e9 3.1e4 4.4e2 1.0e3 4.1e2
2. 1.1e4 1.4e6 9.9e1 8.6e6 1.9e-2 1.1e3 4.3e4

I want to put the number from the 3rd row, 4th column from each emacs/ASCII file into one (26-
row 1-column) array.

Could someone please help me write a code for this? Please leave in "trivial" lines too, for I have almost no Perl experience.


  • 0


Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP