Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About section31

  • Rank
  1. Ok, after toying around I came up with this. I don't know if its the most efficient way though. find foobarDir/ -name *.jpg -maxdepth 1 | xargs tar -cvzf backup.tar.gz
  2. hm, not sure If I can make it any clearer but I'll try. Lets say I'm making a gzip tarball. tar -cvzf archive.tar.gz foobarDirectory/ This will tar everything in foobarDirectory including all of the subdirectories in it, hence being recursive. I would like to know how would I go about taring a directory that doesn't tar its subdirectorys, but just the contents within that directory. A simple flag doesn't seem like an option as I looked in the man page and didn't see one. So, I will need to find an alternative, and if anyone could help that would be cool. It would probably inv
  3. Is there a simple way to do a non-recursive tar. I've come up with a few sites that say there is a flag -n for it, but the distro (fedora 3) i'm using doesn't have that option. Any other alternatives?
  • Create New...