Unix & Linux: How to get dynamic variable in a query of a shell script?

Published --