nievergeltlab
9/13/2017 - 4:09 PM

Strip paths in TAR

This removes paths from tar files up to N levels

#ls /archive/maihofer/*qc*.tgz > qced_data.list #prune out v1 of data

for files in $(cat qced_data.list)
do 
 echo $files
 tar xvzf $files --wildcards "*-qc.fam" --strip=2
done