#!/bin/bash
path=$1

for file in ${path}/*/*/*; do
if [[ ${file} == *fq* ]]; then
new_name=$(echo ${file} | sed 's/.fq/.fastq/g')
mv ${file} $new_name
fi
done
