Is there a way to run a compressed bash script with "arguments" directly on the fly without unpacking it to a file, and then run the unpacked file?
for example: I need to execute setup-mysql gzip a compressed script with some given arguments: "-n", "wordpress", "locahost", without decompressing the script first and then executing.
What I'm looking for is a replacement for the word MAGIC ... in my team below:
gzip -d --stdout /usr/share/doc/wordpress/examples/setup-mysql.gz | MAGIC... -n wordpress localhost
bash gzip
Zskdan
source share