#!/bin/bash set -eu archivename="$1.7z" echo "$archivename" filelist="$@" 7z a -p -mx9 -mhe "$archivename" "$filelist"