Operating System - HP-UX
1838469 Members
2714 Online
110126 Solutions
New Discussion

Re: how can i use tar cmd extract the file?

 
SOLVED
Go to solution
gary guo
Contributor

how can i use tar cmd extract the file?

#tar tvf /dev/rmt/0m
rw-rw-rw- 102/102 410160128 Apr 28 11:29 2003 ani8888_200101.dmp
rw-rw-rw- 102/102 534205440 May 8 12:05 2003 ani8888_200102.dmp
rw-rw-rw- 102/102 141350912 May 16 13:36 2003 ani169_200101.dmp
rw-rw-rw- 102/102 194612224 May 16 13:59 2003 ani169_200102.dmp
rw-rw-rw- 102/102 147066880 May 16 14:05 2003 ani169_200103.dmp
rw-rw-rw- 102/102 191631360 May 16 14:17 2003 ani169_200104.dmp
rw-rw-rw- 102/102 178548736 May 16 14:40 2003 ani169_200105.dmp
rw-rw-rw- 102/102 261436416 May 16 14:53 2003 ani169_200106.dmp
rw-rw-rw- 102/102 306345984 May 16 15:16 2003 ani169_200107.dmp


i wanna extract the file ani169_200104.dmp,not all of them
i have tried this:
#tar xvf /dev/rmt/0m/ani169_200104.dmp
tar: cannot open /dev/rmt/0m/ani169_200104.dmp

how can i do it ?
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: how can i use tar cmd extract the file?


Try it like this:

# tar xvf /dev/rmt/0m ani169_200104.dmp

There is a space between the device being used /dev/rmt/0m and the file being extracted.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
Anyone for a Mutiny ?
Kiran Kumar Aekabote
Frequent Advisor

Re: how can i use tar cmd extract the file?

Hi Gary,

What ever U tried is same but there should be space in between the device from where to retrieve and file to be retrieved, like

#tar xvf /dev/rmt/0m anil169_200104.dmp

Go to the /tmp or some other location where to retrieve the file and fire the above mentioned command.

Good Luck
Kiran
You Just can't beat ME