www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/23/02:54:06

Date: Thu, 23 Jul 1998 09:54:05 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Anne-Marie Chapman <ichapman AT sympatico DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Test Utilities
In-Reply-To: <35B66B5D.1202@sympatico.ca>
Message-ID: <Pine.SUN.3.91.980723095342.14884K-100000@is>
MIME-Version: 1.0

On Wed, 22 Jul 1998, Anne-Marie Chapman wrote:

> 	I guess that this question is good for Nate or Eli.

Thanks for the vote of confidence, but there're a lot more than us two
here who know about these things, as I'm sure you will find soon
enough.

> Test 1
> (More test 1 stuff)
> Test 2
> (More test 2 stuff …etc
> 
> 	What I generate is files 1 to n each containing the stuff for that
> test.  I then run it through the gnu sort and cat it to another big
> file.

Seems like a job for `csplit' from the GNU Textutils
(v2gnu/txt122b.zip).  But if you really need to handle multiple
occurences of the same "Test x" header, then I don't think `csplit'
will support it.  In such a case, Gawk (v2gnu/gwk303b.zip) is your
friend.  It could be also done with Sed, I think, but the script
would be a bit complicated.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019