You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for file in SSS_180x360_P10_*.tar.gz ; do tar -xzvf SSS_180x360_P10_20_ST_360_400_N100.tar.gz -C targetdir/ --wildcards "SSS_180x360_P*_ST_360_400_N100_Y_X_sp_*.dat" "SSS_180x360_P*_ST_360_400_N100.log" ; done
Note that order of args in tar is important:
-zxvf is fine for .tar.gz but not -xzvf, i.e. first unzip(z) then extract(x)
-C for diff output dir must follow tarfile,i.e. must stand before --wildcard