Started working on the downsampling script
Fixed the process redirection expansion

Variables get interpolated after bash checked for pipes and redirects.
So, move the process expansion out of the variable.