[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file naming



jbush@pucp.edu.pe wrote:
> 
> arne
> 
> i think the *.fit, *.fts is an absolute must.  a number of good programs
> require the identification . .  to go and add the extension to 80 or more
> files makes it very undesirable, to see the least that it is very time
> consuming

The problem is if they are all called .fts then they work for you
but my program likes .fits (four leters) so someone always has to
re-name them

Renamming is triveal and only takes seconds to re-name thousands of
files even in DOS' command.com you can write loops

    foreach P (*)
      mv $P $P.fit

If your OS allows links then try "ln -s $P $P.fit" and give the
file two names.


In UNIX shells one can make a one line wrapper script with something
like "fitsviewer $1.fits" so that "fits" gets appended to the filename.

I don't like the idea of encoding anything in the filename.  THat's
what fits headers are for.
--
   Chris Albertson             
   chrisalbertson90278@yahoo.com
   Redondo Beach, California
   home: 310-376-1029
   cell: 310-990-7550