-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Crafts
Sriranga Kashyap edited this page Feb 21, 2022
·
4 revisions
tar --exclude="*/*/*" -tf sub-01_dicoms.tar.gz
tar -xvf sub-01_dicoms.tar.gz sub-01/001-AALScout
for i in */; do tar -zcvf "${i%/}.tar.gz" "$i"; done
directory_to_remove=/home/${USER}/Github_Projects/hello_world
PATH=:$PATH:PATH=${PATH//:$directory_to_remove:/:}
PATH=${PATH#:}; PATH=${PATH%:}