Re: Dividing a large file into smaller ones

From: Barry Kimelman (raisin_at_SPAM-KILLER.mts.net)
Date: 08/20/03


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


Relevant Pages

  • Re: Really Baffled any clues as to what is going on?
    ... > I am working on a script, it has an input file of machine names. ... > Dim fstrLogFilePath ... > fstrInputFile = InputBox("Enter name of file containing machines to ...
    (microsoft.public.scripting.vbscript)
  • Re: Parse an input file using a Key value
    ... I have an input file in the following format getting repeated. ... I tried to achieve this task using the following script below but it is ... To tranpose certain rows into columns and sort by one of the ...
    (comp.unix.shell)
  • Re: Running a DOS program using Microsoft Command Shell
    ... needed are available by public FTP: ... and the input file is run.txt. ... missing the ESC character, since I don'y know how to feed ESC in this ... When instructed from shell script, the progam simply ignores all SendKeys. ...
    (microsoft.public.windows.server.scripting)
  • newbie problem - how do I get dll version & size?
    ... I have a bunch of machines on which I need to check .dll revisions. ... to write a simplescript to do this. ... Set objFSO = CreateObject ... Line 1 of my input file seems to be skipped. ...
    (microsoft.public.scripting.vbscript)
  • Re: Really basic data entry question [Beginner]
    ... Because if your teacher told you ... 'data script'. ... I've never once seen an input file that was laid out like ... ramps so that you can jump your car over a narrow river; ...
    (comp.lang.java.programmer)