Bash - tar unzip or extract only a given file from big archive

15 Oct 2017

To extract and decompress only a file from a big archive:

tar -x contact_maps/HiCNorm_QQ/primary_cohort/AO.nor.chr1.qq.mat -zf all_data_contact_maps.tgz
[ bash  ]