Welcome to iraf.net Sunday, April 28 2024 @ 01:07 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Problem with Match in .cl script
   
piverson
 07/10/2007 10:08PM (Read 2437 times)  
+++--
Chatty

Status: offline


Registered: 07/10/2007
Posts: 42
I have been having trouble using the match command. Below is a portion of the script I am using.hselect BYU*.fits $I,FILTER yes > "datalist1"
match U\# "datalist1" > "datalistU"I want the script to pull out the filename and filter field from each header and delete the images taken in the U filter. Unfortunately it recognizes the U in BYU as matching the U(whitespace) that should be found in the filters field. The same problem happens in with the B portion. For some reason the \# is not recognized as whitespace like the help files said it should be.

 
Profile Email
 Quote
fitz
 07/10/2007 10:08PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Not recognizing the '#' may be a bug in the system, I need to look into it further. Otherwise you can use the end-of-line metachar to do what you want, e.g. to select all lines *except* those with the U filter:[code:1:08834a7116]cl> match "U$" datalist1 stop+[/code:1:08834a7116]Note the 'stop' param inverts the sense of the match.- Mike

 
Profile Email
 Quote
   
Content generated in: 0.09 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login