Extracting block of data from a file
I have a problem, which surely can be solved with an awk one-liner.
I want to split an existing data file, which consists of blocks of data
into separate files. The datafile has the following form:
1 1
1 2
1 3
2 1
2 2
2 3
3 1
3 2
3 3
And i want to store every single block of data in a separate file, named -
for example - "1.dat", ".dat", "3.dat",... The problem is, that each block
doesn't have a specific line number, they are just delimited by two "new
lines".
Thanks in advance, Jürgen
No comments:
Post a Comment