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

Home » Public Forums » archive » AWK inside idl
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: AWK inside idl [message #92770 is a reply to message #92767] Fri, 26 February 2016 01:33 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den fredag 26 februari 2016 kl. 06:50:26 UTC+1 skrev Sapna Mishra:
> IDL> spawn, "awk '{print $2 }' data2.dat >tmp1", result, error_result
> IDL> print,error_result
>
> IDL>
>
> i.e it is not printing anything

You say data2.dat is not empty, but does it have any lines with the second field that $2 refers to? Do you get any tmp1 file if you execute the awk command directly at the shell prompt?

Hmmm, I guess if there are no second fields the file should still be created but with empty lines.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Big array saving less value to a file
Next Topic: list concatenation

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

Current Time: Thu Oct 09 22:47:14 PDT 2025

Total time taken to generate the page: 0.88049 seconds