English 中文(简体)
How to extract .depot file on HPUX?
原标题:

How can I extract extract a .depot file on HPUX?

The .depot file is a tarred dir stucture, with some of the files gzipped under the same name as original.

Note that my environment is quite limited - I can t have root, I don t have swinstall.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1259826031876+28353475&threadId=1143807

At best, the solution should work on Linux too.

I have tried to untar and gunzip -f -r -d -v --suffix= . But the problem is that the gzipped files have no suffix, so in the end, gzip deletes them.

最佳回答

It was relatively easy:

for f in `find -type f` ; do
    mv $f $f.gz
    gunzip $f.gz
done
问题回答

暂无回答




相关问题
Periodic Script- Daemon-

ux and i need delete a specific file every day. then I need to do a shell script or something else with a simple command for example # rm <filename> But i need add this script to init, or ...

hp-ux how to get 2 hours ago bash datetime

we are using hp-ux servers we need to get 2 hours ago datetime value in bash shell script ? how can i do that any experiences ?

process identification

Let s say i have 15 processes/daemons running in the background. let s say one of the process has dumped the core. how could i identify which process has dumped the core. i am using hpux!

Trying to test space in filesystem on Unix

I need to check if I Filesystem exists, and if it does exist there is 300 MB of space in it. What I have so far: if [ "$(df -m /opt/IBM | grep -vE ^Filesystem | awk {print ($3)} )" < "300" ] ...

Getting past dates in HP-UX with ksh

Ok, so I need to translate a script from a nice linux & bash configuration to ksh in hp-ux. Each and every command expects a different syntax and i want to kill myself. But let s skip the rant. ...

How to extract .depot file on HPUX?

How can I extract extract a .depot file on HPUX? The .depot file is a tarred dir stucture, with some of the files gzipped under the same name as original. Note that my environment is quite limited - ...

Idle tcp file descriptor after failed connect on HPUX

I have a client tcp socket (in c++) that has a loop where it retries to open a socket and connect to a server at a certain interval until it succeeds. A bug in the program caused close not to be ...

热门标签