Welcome to iraf.net Wednesday, May 01 2024 @ 10:39 PM GMT
massey |
04/26/2006 06:53PM (Read 3296 times)
|
|
|
Status: offline
Registered: 02/10/2006
Posts: 162
|
Hi, Mike et al:I'm experiencing a slightly weird problem: I have a set of files with long
wacky names like
s73475g0.5m15z-0.75t2.0.spec
s73500g0.5m15z-0.75t2.0.spec
s73525g0.5m15z-0.75t2.0.specIt seems as if anything I do to try to change the end of these names
(using files or "//") results in the new extension winding up somewhere where
I don't expect it. For instance:
files *.spec > in
does the right thing. However, if I then do a
files @in//.fits I get:s73475g0.5m15z-0.75t2.0.fits.spec
s73500g0.5m15z-0.75t2.0.fits.spec
s73525g0.5m15z-0.75t2.0.fits.specAlternatively, if I try a:
files *%.spec%% > in2
and then a
files @in2//.fits I again get a surprise:s73475g0.5m15z-0.75t2.fits.0
s73500g0.5m15z-0.75t2.fits.0
s73525g0.5m15z-0.75t2.fits.0If it makes any difference, I am running this under OSX,
with my imtype set to fits.cheers,
phil
|
|
|
|
fitz |
04/26/2006 06:53PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
I agree there's something weird in the templating code, but if all you want is to add a ".fits" extension try[code:1:e32209926b]cl> rename *.spec fits field=extn[/code:1:e32209926b]I'll add this to the bug list as well.-Mike
|
|
|
|
| |
|
Content generated in: 0.08 seconds |
|