Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thank you Warren Young! And can I "process" assign? Example: if [ $TAR = 0 ] Commented Jan 11, 2016 at 0:18
  • @Jannyeis: I'm not sure what you mean. If you run tar inside $() like in your original code, you are capturing its output. So, comparing that output to 0 is also not likely to do what you want. You're interested in the exit status code here, not the text output of the program. Commented Jan 11, 2016 at 0:22