Welcome to iraf.net Friday, May 17 2024 @ 05:23 AM GMT
piverson |
07/10/2007 10:08PM (Read 2439 times)
|
|
|
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.
|
|
|
|
fitz |
07/10/2007 10:08PM
|
|
|
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
|
|
|
|
| |
|
Content generated in: 0.08 seconds |
|