for file in /opt/shell/*/*.bin
do
    if [[ -f $file ]]; then
        gzip $file
    fi
done

