I have a data like this:1 00001001010000001 00000101000000002 11100000010000002 11110000000010003 00000001111111113 1111111100000000and I want to sum up the values within eachtwo rows with the same row number:output:1 00001102010000002 22210000010010003 1111111211111111any suggestion please? my real dat had 8000 rows with 45000 digit in each line
How to accumulate values of each two rows across a line in linux?
linux;shell;text processing;awk;perl