- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- zgip a list of files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 09:49 AM
11-06-2000 09:49 AM
zgip a list of files
ll | grep $Month | gzip -vf *
but I keep getting the complaint "/usr/../gzip: the parameter list is too long" is there a better way of doing this than doing the manual command one file at a time. Thank for your assistant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 10:20 AM
11-06-2000 10:20 AM
Re: zgip a list of files
Use it this way.
To compress
# tar cvf - *.c | /usr/contrib/bin/gzip -c >allc.tar.gz
To uncompress
# /usr/contrib/bin/gzip -d allc.tar.gz
#tar xvf allc.tar
Should server your purposed.
Enjoy !
......Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 10:30 AM
11-06-2000 10:30 AM
Re: zgip a list of files
Try this:
ll |grep "$Month"|awk '{print $9}'|xargs gunzip -vf
Bye
CGRC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 10:31 AM
11-06-2000 10:31 AM
Re: zgip a list of files
to compress:
ll |grep "$Month"|awk '{print $9}'|xargs gzip -vf
Good Day
CGRC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 11:08 AM
11-06-2000 11:08 AM
Re: zgip a list of files
Using 'xargs' is a good way to resolve your problem as already indicated.
Modifying and regenerating your kernel (in 10.20) with 'large_ncargs_enabled=1' is another way to avoid some of these problems.
From document #A5390842:
The 'arg list too long' error occurs when you exceed the maximum length of arguments that can be passed to a command.
The default is 20478 bytes, but you can increase this value to 2048000 by setting the kernel parameter 'large_ncargs_enabled = 1' (default is 0).
You can execute 'getconf ARG_MAX' to find out if 'large_ncargs_enabled' is set to 1 or 0. For example:
$ getconf ARG_MAX
20478
If you receive 20478 when you execute the command, recompile the kernel with 'large_ncargs_enabled=1' to resolve the error.
Note that for HP-UX 11.0 systems, the limit is set to the larger value by default, and the large_ncargs_enabled kernel tunable is not needed.
Note that patch:
PHKL_16410
s800 10.20 LVM/UFS/NDDB/flkmgr/VxFS,DMAPI/PCI/SCSI/MO/dump
enables this kernel parameter, so you may need to install it if you do not already have it or a superseding patch installed already.
...JRF...