I have the folder a with two files (1,2), and the subfolder b with another two files (3,4).
I ´d like to tar a with ‘1,2,3,4’ files in the tar file, but not including b.
(By default (tar cvf), b is added, and ‘3,4’ are inside b. How can I do it?)
Thanks
you can use a script like this:
and create the filelist with a command like this: