You might consider the find command. It will descend a directory tree trying to find matches. if you don't want it to cross into any sub-mounted filesystems or follow symbolic links then there are flags to deal with that.
As a starter for 10, try something like:-
What is your OS & shell? There seems to be one post using / and one using \ The output (in CODE tags) from uname -a;ps would be very useful.
If every single file has been zipped and you are confident of the unzip process, you could even extend the find to run that on each file it finds, however you have to be sure it is what you want, so copy a small part away and test it elsewhere first. Just focus on working with a single zip file first. What command do you have for unzipping one of these? Does it remove the zip file afterwards? Is that is what you want?
Hi All
I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX).
I don't have unzip cmd available in my curent Unix version
Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file .
Please elaborate on the commands aval and... (5 Replies)
Good day all.
I want to unzip multiple files in a directory. Suppose there are two files:
test.txt.zip and test1.txt.zip
Using this command:
unzip -o -P test*.zip
results in the unzipping of the first file not second.
It gives this error:
Archive: test.txt.zip
caution: filename not... (2 Replies)
Hi All
I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX).
I don't have unzip cmd available in my curent Unix version
Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file .
Please elaborate on the commands aval and... (5 Replies)
Hi,
I have a file in the form of .zip in unix directory, now I want to unzip the file in unix environment.
May I know how to unzip this file
File name: cust.zip
Thanks in Advance...
Aswice (1 Reply)
Hi,
I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server.
How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Hi,
Does anyone know if there is an unzip command similar to
tar -xOf $tarBall $fileInTarFile
which will untar a single file in a tar ball to STDOUT ?
I want to do the same but with a .zip (ZIP archive) file.
- Andy
---------- Post updated at 05:56 PM ---------- Previous update... (0 Replies)
I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix.
Please help me resolve this issue
Thanks
ganesh. (3 Replies)
I receive multiple zipped directories with files in them, so the .zip name is the name of the directory containing the files.
so i have used a simple loop to unzip all of them but when unzipped i have folders/directories, i wanted to strip these directories and remain with the actual files from... (1 Reply)
Please tell me the unix command how to unzip a gz file(say a qwe.gz) and the orginal gz file should remain intact.
Thanks in advance (7 Replies)
Discussion started by: pranabpal
7 Replies
LEARN ABOUT OPENSOLARIS
vgcfgrestore
VGCFGRESTORE(8) System Manager's Manual VGCFGRESTORE(8)NAME
vgcfgrestore - restore volume group descriptor area
SYNOPSIS
vgcfgrestore [-d|--debug] [-f|--file filename] [-l[l]|--list] [-h|--help] [-M|--Metadatatype1|2] [-t|--test] [-v|--verbose] VolumeGroupName
DESCRIPTION
vgcfgrestore allows you to restore the metadata of VolumeGroupName from a text backup file produced by vgcfgbackup. You can specify a
backup file with --file. If no backup file is specified, the most recent one is used. Use --list for a list of the available backup and
archive files of VolumeGroupName.
OPTIONS -l | --list -- List files pertaining to VolumeGroupName
List metadata backup and archive files pertaining to VolumeGroupName. May be used with the -f option. Does not restore Vol-
umeGroupName.
-f | --file filename -- Name of LVM metadata backup file
Specifies a metadata backup or archive file to be used for restoring VolumeGroupName. Often this file has been created with vgcfg-
backup.
See lvm for common options.
REPLACING PHYSICAL VOLUMES
vgdisplay --partial--verbose will show you the UUIDs and sizes of any PVs that are no longer present. If a PV in the VG is lost and you
wish to substitute another of the same size, use pvcreate --restorefile filename --uuid uuid (plus additional arguments as appropriate) to
initialise it with the same UUID as the missing PV. Repeat for all other missing PVs in the VG. Then use vgcfgrestore --file filename to
restore the volume group's metadata.
SEE ALSO lvm(8), vgcreate(8)Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) VGCFGRESTORE(8)