#!/bin/bash
function main() {
for i in `ls`; do
if [[ "${i}" == *".sh"* || "${i}" == *".txt" ]]; then
echo "Shell file";
else
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on "${i}".7z ./"${i}"
fi
done
}
main