Hi,
I have a text file where all records come in one line (single line file), each record starts with 'BUCH' and ends with '@&' and if data is not there we get space instead. between '@&' and next record there might be some spaces, now I want to remove those spaces between '@&' and 'BUCH'.
Please help.
Input file
BUCH20131013 4748420001 BUCA20131013 4748520001 '@&' BUCH20131013 4748420002 BUCA20131013 4748520002 '@&' BUCH20131013 4748420001 BUCA20131013 4748520003 '@&' BUCH20131013 4748420001 BUCA20131013 4748520004 '@&' BUCH20131013 4748420001 BUCA20131013 4748520005
output:
BUCH20131013 4748420001 BUCA20131013 4748520001 BUCH20131013 4748420002 BUCA20131013 4748520002 BUCH20131013 4748420001 BUCA20131013 4748520003 BUCH20131013 4748420001 BUCA20131013 4748520004 BUCH20131013 4748420001 BUCA20131013 4748520005
Thanks in advance.