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 #92763 is a reply to message #92761] Thu, 25 February 2016 17:46 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 2/25/16 12:18 PM, Sapna Mishra wrote:
> Hello all,
>
> How can I use awk command inside idl? I am doing:
>
> spawn, "awk '{print $1 }' data2.dat >tmp1"
>
> It is showing no error in IDL prompt but the file tmp1 is not getting
> created. My data2.dat is not empty. Any help in this regard???
>

Use the result and error_result output params to see what is happening:

IDL> spawn, "awk '{print $1 }' data2.dat >tmp1", result, error_result
IDL> print, result
IDL> print, error_result

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[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: Wed Oct 08 18:14:52 PDT 2025

Total time taken to generate the page: 0.00379 seconds