[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SLUG] Gnu Tar --files-from=file name option
I have been trying
to use a list of files with the --files-from= option of Gnu tar. In particular,
I want to be able to change directories before it processes the files in the
list. For example, I want to extract file1 into directory /u01/a
and file2 into directory /u01/b. I set up the file list file like
this:
-C
/u01/a
file1
-C
/u01/b
file2
The file is named
extract.cntl
From /u01, I use the
following syntax to start the extract:
tar xvf /dev/nrmt0h
-T extract.cntl
The result is that
both file1 and file2 are extracted to /u01 and not to the correct
sub-directories.
The GNU tar:
an archiver tool documentation describes the operation but does not
give any clear examples. Can anyone help.
Thanks,
Dennis