HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File splitter/compression
Operating System - HP-UX
1833599
Members
3677
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-28-2002 03:19 PM
03-28-2002 03:19 PM
I am looking for a hpux tool that does file compression and splits the file into a number of smaller files. Can anyone help?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 03:30 PM
03-28-2002 03:30 PM
Solution
Hi,
The split command will split files.. for example:
>ls -l test.ksh
-rwxr-xr-x 1 skhan sysadmin 464 Mar 27 15:51 test.ksh
This file has 464 bytes, if you would like to split this into two then:
>split -b 232 test.ksh
will split the files into (the filenames will be xaa, xbb etc..):
>ls -la xa*
-rw-r--r-- 1 sxkhan sysadmin 232 Mar 28 15:29 xaa
-rw-r--r-- 1 sxkhan sysadmin 232 Mar 28 15:29 xab
If you want to compress the file, then:
>compresss test.ksh
-rwxr-xr-x 1 sxkhan sysadmin 329 Mar 27 15:51 test.ksh.Z
To uncompress:
uncompress test.ksh.Z
-rwxr-xr-x 1 skhan sysadmin 464 Mar 27 15:51 test.ksh
Hope this helps !
-Shabu
The split command will split files.. for example:
>ls -l test.ksh
-rwxr-xr-x 1 skhan sysadmin 464 Mar 27 15:51 test.ksh
This file has 464 bytes, if you would like to split this into two then:
>split -b 232 test.ksh
will split the files into (the filenames will be xaa, xbb etc..):
>ls -la xa*
-rw-r--r-- 1 sxkhan sysadmin 232 Mar 28 15:29 xaa
-rw-r--r-- 1 sxkhan sysadmin 232 Mar 28 15:29 xab
If you want to compress the file, then:
>compresss test.ksh
-rwxr-xr-x 1 sxkhan sysadmin 329 Mar 27 15:51 test.ksh.Z
To uncompress:
uncompress test.ksh.Z
-rwxr-xr-x 1 skhan sysadmin 464 Mar 27 15:51 test.ksh
Hope this helps !
-Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 03:34 PM
03-28-2002 03:34 PM
Re: File splitter/compression
Sorry, one more thing... to restore the split files back then do this :
> cat x* >
In our example:
> cat x* > test.ksh
-Shabu
> cat x* >
In our example:
> cat x* > test.ksh
-Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 05:16 PM
03-28-2002 05:16 PM
Re: File splitter/compression
I like to use a combination of gzip / gunzip and split.
To compress & split:
gzip
split.gz
To consolidate and uncompress:
cat x* >.gz
gunzip.gz
See the man pages of gzip and split for details.
To compress & split:
gzip
split
To consolidate and uncompress:
cat x* >
gunzip
See the man pages of gzip and split for details.

The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP