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
TRICKY TASK USING AWK [message #92769] Fri, 26 February 2016 01:20 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Hello all,

What I have is:

IDL> i=1
IDL> $ awk -v var="$i" '{print $var}' tmp1.dat> tmp3.dat

Upto this it is working ok. now what I want:

IDL> fname[i]='QB0332_CHIP1_GRIS_600V_SCIENCE_SKY_SPECTRUM_FORS1. 2007_11_11T06_43_02.032redwave.dat'
IDL> $ awk -v var="$i" '{print $var}' fname[i]> fnameout[i]

Can I do it some how??? I found it most tricky. Basically can we use variables defined inside idl into shell commands.

Anyone know how to solve this tricky job???
[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 11:34:02 PDT 2025

Total time taken to generate the page: 0.00513 seconds