Hi,
I have the following file input:-
542 4795 61
543 4795 61
544 0 0
545 292 2
546 292 2
547 0 0
548 0 0
549 0 0
550 111 4
551 0 0
552 0 0
553 4614 63
554 4614 63
555 0 0
etc...
The first column basically is an index. I would like to parse the second and third column to be bits.
In other words,
if I have
Index Col2 Col3
1 2 2
2 4 5
I wanted to change to bit wise to:-
#for first row
1 1
1 1
#for second row
1 1
1 1
1 1
1 1
1 1
0 1
Can anyone help me on this. I tried using C and it works but I need to assign "while loop" for each index for the tokenization.IF that is the case, if I have thousands of indexes, i would have to have thousands of while.For your information, i am using a bash/sh script for this.
Please advise. Thanks alot.