commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Note: the tar archive must not exist in order to create it. If exists it will only be updated and no already existent files in present search will still remain in the tar archive. The update option has to be used instead of create because the command tar may be executed more than once depending on the number of arguments that find throws. You can see maximum number of arguments with 'getconf ARG_MAX'
There are 3 alternatives - vote for the best!
I prefer using using the backquotes `...` command substitution method to capture the output of a shell command(s). I'm interested to hear thoughts/opinions on doing it this way. I have never had problems with this method.
If you can do better, submit your command here.
You must be signed in to comment.