How do I pass arguments to a Bash script?
10:25 08 Dec 2017

So I am writing a bash script which will decrypt a file so I what the syntax of the the command to be decrypt [file.jpg] So far this is my script :

openssl enc -d -aes-256-cbc -in file.jpg > file
 echo "Please make sure you add the correct extension to 
the file."

Spent a lot time trying to achieve my goal but it doest work so I would like some help. Like suppose the file name is movie.mov I should be able to decrypt it using decrypt movie.mov or any other file.

bash macos