So this is in a shell script:
#!/bin/bash
trialName= "trial.txt"
chmod a+rwx $trialName
That doesn't really work. I am trying to add single quote/double quotes around $trialName
but that doesn't work either. Any way I can do that?
You need to remove the space after the =
:
trialName="trial.txt" # note the absence of the space between '=' and '"'
chmod a+rwx "$trialName"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With