Editing lists of integers in 1d files with bash shell

Hi, I need a script that will:

  1. Go through about 20 different folders, each containing about 20 1d files. The 1d files go something like this:

22.253 37.707 78.117 112.374 127.944 156.067 180.956 233.785 249.256 301.77 323.443 335.713 390.947 406.268 430.892 476.657
22.283 28.352 67.982 113.863 116.898 168.799 196.208 232.854 248.192 275.585 315.298 354.911 361.063 412.964 443.458 464.947

  1. Take each integer and subtract 1.5 from it, saving a new 1d file that looks exactly like the above text but each integer is 1.5 less.

Thanks for the help!

>echo 22.253 37.707| tr " " "\n" | gawk '{val=$1-1.5; print val}' | tr "\n" " "
20.753 36.207

I know it does not do exactly what you asked for, but it starts to handle some of the issues.