Hi,
I am writing a program which needs 'tar'
The problem is that 'tar' preserves directory structure, but I dont want it to.
I need to create a simple archive with all files inside it. No directory structure.
E.g
Code:
$ pwd
dir3
$ tar -cvf foo.tar dir1/file1 dir2/file2
the file foo.tar is structured like this
Code:
--dir3--|--dir1 -- file1
|
|--dir2 -- file2
but I need
Code:
--dir3 --- file1 file2
Do you know the exact options? I've search the manual, without any luck
Thank you