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

Home » Public Forums » archive » unix/idl question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
unix/idl question [message #67109] Mon, 22 June 2009 04:21
oxfordenergyservices is currently offline  oxfordenergyservices
Messages: 56
Registered: January 2009
Member
Hi

I am having a problem that i want to delete many files with the 'raw'
extension in folder temp

in unix

cd temp
rm *raw
/bin/rm: Argument list too long.

ok, so

cd temp
ls -l | grep raw | awk '{print $9}' | xargs rm

works ok

but I have to be in the directory to do it

I want to do the same from idl and not being in the temp directory

ie

spawn,'cd temp'
spawn,'ls -l | grep raw | awk '{print $9}' | xargs rm '

but the first spawn does not leave me in the temp directory

any ideas?

Thanks

Russ
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: object reference destroy
Next Topic: Re: unix/idl question

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

Current Time: Fri Oct 10 10:22:10 PDT 2025

Total time taken to generate the page: 0.40162 seconds