1,.gz extract using gzip while .tar.gz using tar.
gzip -d .filename tar -xzvf filename 解压缩
gzip tofilename source tar -czvf tofilename fromfile 压缩
2, rename: rename 's/str1/str2/g' filename
for spatial char using " " ,like "s/'target//g" *.nii , 'target will be removed