The input file has the following lines and segregate these using the 2nd field '+' symbol lines in one file and '-' symbol lines in another file:
24 + I am the Five man
22 - Who are you? The new number two!
51 + . . . And four on the floor
42 +
16 - Who is number one?
33 - I three you.
is it possible when the $2 is '+', a=$1+500 and b=$1-500 at the same time when the $2 is '-', a=$1-500 and b=$1+500? 'a' and 'b' are the new variables.