Monks:
I am bit stuck on this one.
I have a data set such as this:
1:1 word1
1:1 word2
1:1 word3
1:1 word4
1:2 word1
1:2 word2
1:2 word3
1:3 word1
1:3 word2
1:3 word3
I have stored each line into an array. I need to distinguish where the increment occurs and insert a header, thus transforming my data to:
>1:1
1:1 word1
1:1 word2
1:1 word3
1:1 word4
>1:2
1:2 word1
1:2 word2
1:2 word3
>1:3
1:3 word1
1:3 word2
1:3 word3
Any insights would be greatly appreciated.
In reply to Editing Listed Data by jtucker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |