I have built a file list which contains a list of directories and files to be tar-ed. However, for a certain directory, not all its subdirectories and files should be tar-ed. Only those in the list should be. I tried with command option "-I" or pipe "| xargs" like followings:
tar cvf <tar_file> -I <list_file>
cat <list_file> | xargs cvf <tar_file>
However, tar command automatically include all the directory contents which has some files should be excluded. Is there an tar command option not extend to its contents?