home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!news.cerf.net!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Subject: Re: How to chop up an archive.tar.Z file like in the X distributions?
- Message-ID: <1992Dec17.235837.25016@netlabs.com>
- Sender: news@netlabs.com
- Nntp-Posting-Host: scalpel.netlabs.com
- Organization: NetLabs, Inc.
- References: <1992Dec15.142232.1@cc.utah.edu> <MERLYN.92Dec16113051@romulus.reed.edu>
- Date: Thu, 17 Dec 1992 23:58:37 GMT
- Lines: 17
-
- In article <MERLYN.92Dec16113051@romulus.reed.edu> merlyn@ora.com (Randal L. Schwartz) writes:
- : In article <1992Dec15.142232.1@cc.utah.edu> eyring@cc.utah.edu writes:
- : How to chop up an archive.tar.Z file like in the X distributions?
- :
- : I use my "binsplit" program, like so:
- :
- : #!/usr/bin/perl
- :
- : $size = 65536;
- : $size = shift if $ARGV[0] =~ /^-\d+$/;
-
- That would set the size to a negative number. How 'bout:
-
- $size = -shift if $ARGV[0] =~ /^-\d+$/;
-
- Larry Wall
- lwall@netlabs.com
-