An AWK one liner program to normalize the signal.
% gawk 'NR==FNR{if($0>max) max=$0;next} {$0=$0/max}1' file1 file1 > file2
The program is not very efficient, because every line is checked to determine if the file is read for the first time.
But, it works.