sposition.pl - String Positioning
The Script will find the line number and positions of the @ symbols in pos.txt.
# cat pos.txt
00000000000000000000000@00000000000000000000000000
0000000000000000@000000000000000000000000000000000 00000000000000000000000000000000000000000@0@000000 000000000000000000000@0000000000000000000000000000 00000000000000000000000000@000@0000000000000000000 |
# ./sposition.pl
1-23, 2-16, 3-41, 3-43, 4-21, 5-26, 5-30,
1-23, 2-16, 3-41, 3-43, 4-21, 5-26, 5-30,
Here is the code