I find myself often having two files that need to be processed in a simple, robotic way, but BC can't handle it. It would help immensely if BC allowed the possibility to specify left/right for individual components in search/replace RegExes. For example, the following 2 files:
File 1
A = 1
B = 2
(repeated thousands of times with small variations)
File 2
A = 1
B = 4
C = 3
(repeated thousands of times with small variations)
I want to say "Take all the B values from the left, and move them to the right", and then "Take all the C values from the right, and move them over to the left". Today with BC, that doesn't appear to be possible. Even worse, BC sees the changes to B and C as one single "change". So I have the possibility of taking everything from the left, or everything from the right, but I want a combination of those things. So this gets extremely tedious - for every change (and there are thousands of them), I have to say "Copy line to right" and "Copy line to left". Would be great if there was an easier way to do this.
File 1
A = 1
B = 2
(repeated thousands of times with small variations)
File 2
A = 1
B = 4
C = 3
(repeated thousands of times with small variations)
I want to say "Take all the B values from the left, and move them to the right", and then "Take all the C values from the right, and move them over to the left". Today with BC, that doesn't appear to be possible. Even worse, BC sees the changes to B and C as one single "change". So I have the possibility of taking everything from the left, or everything from the right, but I want a combination of those things. So this gets extremely tedious - for every change (and there are thousands of them), I have to say "Copy line to right" and "Copy line to left". Would be great if there was an easier way to do this.
Comment