Hello all,
I'd like to take a sample of a big "real" file (each line of the file
having the same structure) to test some programs, by putting in my
sample only the lines (for example) 1, 1001, 2001, 3001, ...
Is there a nice way to do that with a single pipeline ?
The only "ugly" solutions I can think of are made by building my
pipeline dynamically in rexx :
(1) something like "pipe < inputFile | spec 1-* 1 read read read ...
read | ..." which would get rid of the 999 lines I don't want
(2) something like "pipe diskrand 1 1001 2001 ... | ..."
Any nice idea ?
Any stage(s) that performs the job ?
Thanks
Michaël