0

I have a command in my shell script

CONFIGS="`tar -tzf ${CONFIGS_ARCHIVE}`"

CONFIGS_ARCHIVE is tar.gz file. If the command is executed what will be the value of CONFIGS?

Thanks, LinuxPenseur

2
  • It's probably easiest to just try it Commented Dec 1, 2010 at 5:32
  • which quote do you mean " or ` ? Commented Dec 1, 2010 at 6:20

1 Answer 1

1

` quote is for executing the command. Unless you put that ` quote, shell will treat that command as a regular string. If you want to execute a command and save it to a variable like you do, you must put that ` quote

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.