Skip to main content
deleted 1 character in body; edited tags
Source Link
jimmij
  • 48.7k
  • 20
  • 136
  • 141

Using awk is it doable to separate values based on a certain record?

Let's say we have following file:

ACCJSH PREMIUM
I5001
7
5976
7
@#
0.2
5195
5231
0.2
@#
39
5197
39
@#

If we take the @# for example, groups will be:

ACCJSH PREMIUM
I5001
7
5976
7

and

0.2
5195
5231
0.2

and

39
5197
39

Using awk is it doable to separate values based on a certain record?

Let's say we have following file:

ACCJSH PREMIUM
I5001
7
5976
7
@#
0.2
5195
5231
0.2
@#
39
5197
39
@#

If we take the @# for example, groups will be:

ACCJSH PREMIUM
I5001
7
5976
7

and

0.2
5195
5231
0.2

and

39
5197
39

Using awk is it doable to separate values based on a certain record?

Let's say we have following file:

ACCJSH PREMIUM
I5001
7
5976
7
@#
0.2
5195
5231
0.2
@#
39
5197
39
@#

If we take the @# for example, groups will be:

ACCJSH PREMIUM
I5001
7
5976
7

and

0.2
5195
5231
0.2

and

39
5197
39
Source Link
Eng7
  • 1.7k
  • 5
  • 18
  • 40

Separate values based on record

Using awk is it doable to separate values based on a certain record?

Let's say we have following file:

ACCJSH PREMIUM
I5001
7
5976
7
@#
0.2
5195
5231
0.2
@#
39
5197
39
@#

If we take the @# for example, groups will be:

ACCJSH PREMIUM
I5001
7
5976
7

and

0.2
5195
5231
0.2

and

39
5197
39