User Tools

Site Tools


Sidebar

Writing /opt/bitnami/dokuwiki/data/meta/unzip-to-a-folder-with-same-name.meta failed
Writing /opt/bitnami/dokuwiki/data/meta/git/delete-tag.meta failed
Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.

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: 2020/09/09 17:49 by whtsky