User Tools

Site Tools


Sidebar

Go Back

Contact
Recent Changes
Sitemap
unzip-to-a-folder-with-same-name

Unzip to a folder with the same name

unzd() {
    if [[ $# != 1 ]]; then echo I need a single argument, the name of the archive to extract; return 1; fi
    target="${1%.zip}"
    unzip "$1" -d "${target##*/}"
}

https://unix.stackexchange.com/questions/489445/unzip-to-a-folder-with-the-same-name

unzip-to-a-folder-with-same-name.txt · Last modified: 2021/08/26 14:42 (external edit)