Re: Dividing a large file into smaller ones
From: Barry Kimelman (raisin_at_SPAM-KILLER.mts.net)
Date: 08/20/03
- Next message: Ian Giblin: "Q: how to easily strip CR from end of a string in bash?"
- Previous message: Tr0ll: "Command line input and validation - Bourne shell"
- In reply to: Adibah: "Dividing a large file into smaller ones"
- Next in thread: Laurent Vogel: "Re: Dividing a large file into smaller ones"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 20 Aug 2003 08:13:36 -0500
[This followup was posted to comp.unix.shell]
In article <c04d135e.0308200428.21c8c206@posting.google.com>, Adibah
(adibah@singnet.com.sg) says...
> Hi,
>
> I have a script which will read the contents an input file to
> perform a contact test. The input file is a list of machines that I
> want to do the contact test on. In the event that the input file
> doesn't exist, it will create it's own file by reading the internal
> database. Problem is, this internal database has more than 2000
> machines and this number varies. When I run this, the script takes a
> whole day! I'd like to be able to cut up this list into smaller
> files, probably each of these file will have 100 machine names and
> then, run the script concurrently, so that the contact test is
> completed within an hour and I can collate all the results. How can I
> do this? I'd like to be able to automate the whole process so that I
> can schedule the script to execute every week.
>
>
> Thanks & Regards,
> Adibah
>
The "split" utility can be used to divide a large text file into a series
of smaller text files.
-- --------- Barry Kimelman Winnipeg, Manitoba, Canada email : bkimelman@hotmail.com
- Next message: Ian Giblin: "Q: how to easily strip CR from end of a string in bash?"
- Previous message: Tr0ll: "Command line input and validation - Bourne shell"
- In reply to: Adibah: "Dividing a large file into smaller ones"
- Next in thread: Laurent Vogel: "Re: Dividing a large file into smaller ones"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|