Hi,
if i use this code
awk '/String/{n++}{print > f n}' f=file input
I get "input" splited this way
file1
String
1515
1354
2356
file 2
String
4531
0345
5345
etc
and the files are name like this file1, file2....file10...file125
Is posible to:
1) exclud "String" from the output files and get something like this
file1
1515
1354
2356
file2
4531
0345
5345
2) is posible to name the files like this file001, file002....file010...file125 (i know i could renumber the files, but i would like a more straightforward method)
thanks in advance!