Want to protect my ZIP archive with password.
Create archive with this:
zip -er archivename.zip file and get this:
Enter password: Verify password: Everything is ok,but I have variable with password and need to send this password to zip. Tried through arguments like this, but failed.
echo "$1"| zip -er archivename.zip file Is it possible in bash? Because zip utility does not support stdin.