help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Multiple double quoted expansions


From: Stephane Chazelas
Subject: Re: [Help-bash] Multiple double quoted expansions
Date: Tue, 3 May 2016 14:51:40 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

2016-05-01 08:14:47 +0300, Pierre Gaston:
[...]
> convert "$i" "${i%pcx}png";
> 
> for extra safety you can use:
> 
> for i in ./*.pcx
> 
> this can avoid trouble with filenames starting with eg -

For imagemagick convert, that also helps for filenames that
contain ":"s.

For instance:

convert gif:a.pcx gif:a.png

would create a gif file called a.png instead of a png file
called gif:a.png

convert ./gif:a.pcx ./gif:a.png

would be OK.

-- 
Stephane




reply via email to

[Prev in Thread] Current Thread [Next in Thread]