Re: Command substitution into argument to convert

Grant Taylor <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.