Re: xsane; script that converts file names from .tiff to .tif

From: Steffen Kluge (kluge@fujitsu.com.au)
Date: Thu Feb 22 2001 - 15:25:21 PST

  • Next message: Christoph H.: "always Segmentation Fault"

    On Thu, Feb 22, 2001 at 11:21:47PM +0100, Oliver Rauch wrote:
    > > Is it possible to start a script that converts the filename
    > > after each scan from .tiff to .tif?
    >
    > - xsane-win32 does save the files as tif.
    > - with unix you can select filetype "by ext"
    > and enter the filename xyz.tif, this is
    > recognized.
    > - when you compile xsane yourself you only have
    > to do one change to change the "tiff" menu item
    > to "tif" (see xsane-*/src/xsane-fixedtext.h)

    Absolutely. Or, if you already sit on a pile of .tiff's
    you may, depending on your shell, just use a command like

    for n in *.tiff; mv $n ${n%f}; done

    This will work in bash and ksh, possibly others.

    Cheers
    Steffen.

    -- 
    Steffen Kluge <kluge@fujitsu.com.au>
    Fujitsu Australia Ltd
    Keywords: photography, Mozart, UNIX, Islay Malt, dark skies
    --
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Thu Feb 22 2001 - 15:59:48 PST