Operating System - HP-UX
1838373 Members
3351 Online
110125 Solutions
New Discussion

extracting files with tar

 
rachel_11
Advisor

extracting files with tar

It is very importent to restore the exact file name as was backup.
To prevent a case where you have it with full path name or ./path
create the following script:
#!/bin/ksh
INPF=`tar tvf $1| grep $2 | awk '{print $8}'`
tar xvf tarf $INPF

and run:
script /dev/rmt/0m 200104
(it's enough to give the uniqe part of file name)