comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » TRICKY TASK USING AWK
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: TRICKY TASK USING AWK [message #92801 is a reply to message #92794] Tue, 01 March 2016 19:36 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
READCOL does not care how many columns are in a file. Say a file "bigtable.dat' has 100 columns and we just want to read the 5th column. This would work.

IDL> readcol,'bigtable.dat',v5,f='x,x,x,x,f'

Unfortunately, one can't abbreviate the format as f = '4x,f' though this feature wouldn't be too hard to add.

On Tuesday, March 1, 2016 at 1:08:03 AM UTC-5, Sapna Mishra wrote:
Say If I have infinite number of columns And I want to read 100th column how would I do that, shall I need to give 100 parameters in Readcol?? This seems tough to me.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Looping through structures
Next Topic: Segmentation fault (core dumped)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:30:14 PDT 2025

Total time taken to generate the page: 0.00270 seconds