Re: Command substitution into argument to convert

Grant Taylor <[email protected]> Mon, 13 Jun 2022 16:32:43 -0600
Newsgroups alt.comp.lang.shell.unix.bourne-bash
Organization TNet Consulting
Message-ID <[email protected]>
On 6/13/22 1:28 PM, Michael F. Stemper wrote:
> I'm sure that what I need to do to get a dynamic argument into
> convert will be obvious to everybody except me. What am I missing?

I wonder if you are running into -- what I consider to be -- order of 
operations issues related to quoting.  I use the single quote around awk 
statements so that the $ isn't interpreted.  So there's a chance that 
the $(...) inside of '...' isn't being interpreted either.

When I've run into these type of problems I usually punt to an eval 
"$(date "...")" type thing and have date generate the entire command 
string that is passed to eval.



-- 
Grant. . . .
unix || die