im trying to decompress files and given a list of 4 file types and it gives me this error:gzip: archive: unknown suffix -- ignored
the script:
i=1;for file_name in "$@" doecho "file_name=$file_name ";if [[ "$file_name" == *.zip ]]then unzip archive.zip elif [[ "$file_name" == *.gz ]]then gzip archive.gz elif [[ "$file_name" == *.bz2 ]] then bzip2 archive.bz2else uncompress archivefi i=$((i + 1));done