Awk Tips

capture_002_20042014_163805

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.

capture_001_20042014_163731

But, it works.