Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to know the Original size of the file without unzipping the File? Post 302586947 by Siva Sankar on Tuesday 3rd of January 2012 06:14:42 PM
Old 01-03-2012
How to know the Original size of the file without unzipping the File?

Hi,

I don't have enough space on my Unix Box. So, I can't unzip the file and check the size of the file. So, I need to know, Is there any command, to check, how much the unzipped file takes after unzipping. Thanks in Advance.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it? using grep command.. Bit urgent.. pls..help me (2 Replies)
Discussion started by: senraj01
2 Replies

2. Shell Programming and Scripting

Unzipping a file in Solaris - Issue with xls file

Hi, I have an excel file generated by system in windows. I am zipping it, transfering to unix and unzipping there. But i'm getting below output while unzipping. $ /usr/bin/unzip -a 123.zip -d . Archive: 123.zip inflating: ./123/Index.xls When i copy this unzipped xls file to... (0 Replies)
Discussion started by: ajaykumarb
0 Replies

3. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

4. Shell Programming and Scripting

Unzipping the file

I have my folder structure like a file a.zip is placed in one folder. Inside a.zip is two other zip files x.zip and y.zip If i unzip x.zip i have folder a folder z and inside folder z there are different folders with event time appended to it. Inside the every event folder ,I have a sub folder... (1 Reply)
Discussion started by: weknowd
1 Replies

5. UNIX for Dummies Questions & Answers

CSV file:Find duplicates, save original and duplicate records in a new file

Hi Unix gurus, Maybe it is too much to ask for but please take a moment and help me out. A very humble request to you gurus. I'm new to Unix and I have started learning Unix. I have this project which is way to advanced for me. File format: CSV file File has four columns with no header... (8 Replies)
Discussion started by: arvindosu
8 Replies

6. Shell Programming and Scripting

Get original file size of zipped file

Hi, I have a process which creates files and gzip all the files. Next day, i need to get the file sizes ( before zip size ) of all the gzipped files. Is there any way i can get the original file sizes of gzipped files. Gunzipping the files, getting the file size and gzipping again is not the... (6 Replies)
Discussion started by: forums123456
6 Replies

7. Shell Programming and Scripting

How to remove new line in file after unzipping the file?

I wrote my unix archive script to move the zip files from unix input folder to windows folder,the zip files got successful transfered but while iam unzipping them in windows folder a new line is getting appended in my file.. how can i remove that new line..? (6 Replies)
Discussion started by: hemanthsaikumar
6 Replies

8. UNIX for Dummies Questions & Answers

Print Only File Name in Zip File With out Unzipping It

How i print just only the file name in the zip file. unzip -l AAC_20130930_v13.xml.zip Archive: AAC_20130930_v13.xml.zip Length Date Time Name -------- ---- ---- ---- 62665745 11-19-13 10:43 AAC_20130930_v13.xml -------- ------- 62665745 ... (2 Replies)
Discussion started by: Ariean
2 Replies

9. Shell Programming and Scripting

Find the original file size of encrypted file

Hi, I am trying to find out the original file size of an encrypted file in SunOS. The file was decrypted with gpg command. I want to know the size of the orginal file without decrypting it. I am using the below command, but it is not working for big files(more than 1 GB). gpg --passphrase... (4 Replies)
Discussion started by: vsachan
4 Replies
PKG_ADMIN(1)						    BSD General Commands Manual 					      PKG_ADMIN(1)

NAME
pkg_admin -- perform various administrative tasks to the pkg system SYNOPSIS
pkg_admin [-bqSVv] [-C config] [-d lsdir] [-K pkg_dbdir] [-s sfx_pattern] command [args ...] DESCRIPTION
This command performs various administrative tasks around the NetBSD Packages System. OPTIONS
The following command-line options are supported: -b Print only the base names when matching package names for lsall and lsbest. -C config Read the configuration file from config instead of the system default. -d lsdir Set lsdir as the path to the directory in which to find matching package names for lsall and lsbest. -K pkg_dbdir Override the value of the PKG_DBDIR configuration option with the value pkg_dbdir. -q Perform checks in a quiet manner. In normal operation, pkg_admin prints a '.' to standard output to indicate progress. This option suppresses this progress indicator. -S Set the shell glob pattern for package suffixes when matching package names for lsall and lsbest to be the null suffix. -s sfx_pattern Set the shell glob pattern for package suffixes when matching package names for lsall and lsbest. The default pattern is ".t[bg]z". -V Print version number and exit. -v Be more verbose. The following commands are supported: add pkg ... For each listed package, write the absolute pathnames of the files listed in its +CONTENTS file together with the package they belong to into the package database. This should be used only by pkg_view(1). audit [-es] [-t type] [pkg] ... Check the listed installed packages for vulnerabilities. If no package is given, check all installed packages. If -e is given, override the CHECK_END_OF_LIFE option from pkg_install.conf(5) with "yes". If -s is given, check the signature of the pkg-vulnera- bilities file before using it. -t restricts the reported vulnerabilities to type type. audit-pkg [-es] [-t type] [pkg] ... Like audit, but check only the given package names or patterns. audit-batch [-es] [-t type] [pkg-list] ... Like audit-pkg, but read the package names or patterns one per line from the given files. audit-history [-s] [-t type] [pkgbase] ... Print all vulnerabilities for the given base package names. check [pkg ...] Use this command to check the files belonging to some or all of the packages installed on the local machine against the checksum which was recorded in the +CONTENTS files at package installation time. Symbolic links also have their integrity checked against the recorded value at package installation time. If no additional argument is given, the files of all installed packages are checked, else only the named packages will be checked (wildcards can be used here, see pkg_info(1)). The packages' +CONTENTS files will be parsed and the checksum will be checked for every file found. A warning message is printed if the expected checksum differs from the checksum of the file on disk. Symbolic links are also checked, ensuring that the targets on disk are the same as the contents recorded at package installation time. check-license condition Check if condition can be fulfilled with the currently set of accepted licenses. Prints either yes or no to stdout if the condition can be parsed, otherwise it exits with error. check-pkg-vulnerabilities [-s] file Check format and hashes in the pkg-vulnerabilities file file. If -s is given, also check the embedded signature. check-signature file ... Reports if file is a correctly signed package. check-single-license license Check if license is a valid license name and if it is in the set of acceptable licenses. Prints either yes or no to stdout if the condition can be parsed, otherwise it exits with error. config-var variable Print the current value of variable as used after parsing the configuration file. delete pkg ... For each listed package, remove all file entries in the package database that belong to the package. This should be used only by pkg_view(1). dump Dump the contents of the package database, similar to pkg_info -F. Columns are printed for the key field used in the pkgdb - the filename -, and the data field - the package the file belongs to. fetch-pkg-vulnerabilities [-su] Fetch a new pkg-vulnerabilities file, check the format and if -s is given the signature. If all checks are passed, write it to pkgdb. If -u is given, the fetch is conditional and the file transfer is only done if the remote version is newer than the one in pkgdb. findbest pattern ... Search the entries of PKG_PATH for packages matching pattern. Print the URL of the best matching package to stdout for each pattern. If a pattern is not matched, it is skipped and the command will return a failure. lsall /dir/pkgpattern lsbest /dir/pkgpattern List all/best package matching pattern in the given directory /dir. If the -d flag is given, then that directory path overrides /dir. Can be used to work around limitations of /bin/sh and other filename globbing mechanisms. This option implements matching of pkg-wildcards against arbitrary files and directories, useful mainly in the build system itself. See pkg_info(1) for a description of the pattern. Example: yui# cd /usr/pkgsrc/packages/i386ELF/All/ yui# ls unzip* unzip-5.40.tgz unzip-5.41.tgz yui# pkg_admin lsall 'unzip*' /usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz yui# pkg_admin lsall 'unzip>=5.40' /usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz yui# pkg_admin lsall 'unzip>=5.41' /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz yui# pkg_admin lsbest 'unzip>=5.40' /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*' /usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz /usr/pkgsrc/packages/i386ELF/All/unproven-pthreads-0.15.tgz pmatch pattern pkg Returns true if pkg matches pattern, otherwise returns false. rebuild Rebuild the package database mapping from scratch. This option is only intended for recovery after system crashes during package installation and removal. rebuild-tree Rebuild the +REQUIRED_BY files from scratch by reresolving all dependencies. This option is intended to be used for fixing inconsistencies between the records of depending and depended-on packages, such as can arise by the use of pkg_delete -f. set variable=value pkg ... Set variable with information about the installed package. Use unset to remove a variable. Packages that are not installed directly by the user but pulled in as dependencies are marked by setting ``automatic=YES''. gpg-sign-package pkg spkg Sign the binary package pkg using GPG and write the result to spkg. x509-sign-package pkg spkg key cert Sign the binary package pkg using the key key and the certificate cert, using spkg as output file. unset variable pkg ... Remove an installation variable. ENVIRONMENT
See pkg_install.conf(5) for options, that can also be specified using the environment. FILES
/var/db/pkg/pkgdb.byfile.db /var/db/pkg/<pkg>/+CONTENTS SEE ALSO
pkg_add(1), pkg_create(1), pkg_delete(1), pkg_info(1), pkg_view(1), pkg_install.conf(5), pkgsrc(7) HISTORY
The pkg_admin command first appeared in NetBSD 1.4. AUTHORS
The pkg_admin command was written by Hubert Feyrer. BSD
June 16, 2010 BSD
All times are GMT -4. The time now is 09:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy