Question : bash generate code from embedded code


i need to generate code inside my own bash script. I'll try to explain myself with an example:

case $A in

              LIST="`for RS in ${ARRAY1[@]}; do if [ "$RS" == "lalala" ]; then echo "yes"; fi; done`

and it will generate next stuff:


Is it possible? if yes... i'm doing it right?

Thanks in advance!

Answer : bash generate code from embedded code

You may return first the path/url of the file with some messages (size, filename,...) to the browser then the browser receiving a valid message and url start downloading the file with the url provided
Random Solutions  
programming4us programming4us