Within a Unix shell script...
1) I have a large file and I want to split it into many smaller files (100 records each)...each with a different name (e.g INPT001, INPT002, INPT003, etc.).
2) I then want to process each file within a script loop and take the number of the file being processed and append it to output files to identify them.
Like:
1) within a loop...
mv 1st 100 records to INPT001
mv 2nd 100 records to INPT002
mv 3rd 100 records to INPT003
...and so on.
2) for file in INPT* # INPT001 - INPT290
do
mv INPT??? to INPT # INPT001
exec prog1
mv OUPT to OUPT??? # OUPT001
done
Thanks...
1) I have a large file and I want to split it into many smaller files (100 records each)...each with a different name (e.g INPT001, INPT002, INPT003, etc.).
2) I then want to process each file within a script loop and take the number of the file being processed and append it to output files to identify them.
Like:
1) within a loop...
mv 1st 100 records to INPT001
mv 2nd 100 records to INPT002
mv 3rd 100 records to INPT003
...and so on.
2) for file in INPT* # INPT001 - INPT290
do
mv INPT??? to INPT # INPT001
exec prog1
mv OUPT to OUPT??? # OUPT001
done
Thanks...