Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Extract from ASCII Files w/ Perl


  • Please log in to reply

#1
maxcw

maxcw

    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.

Thanks,

Max
  • 0

Advertisements







Similar Topics

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP