bug-bash
[Top][All Lists]
Advanced

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

Re: automatic code generation


From: Paul Jarc
Subject: Re: automatic code generation
Date: Wed, 12 Jul 2006 15:24:57 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

box <address@hidden> wrote:
> void ${NAME}Panel::showEvent(QShowEvent *e) {
>     ...code....
> }
>
> I want to be able to run my script, have it read the contents of the files
> while replacing ${NAME} with a variable that is defined elsewhere in my
> script.

NAME=...
eval "cat <<EOT
$(cat template-file)
EOT
" > output-file


paul




reply via email to

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