#!/bin/bash #List all folders in a directory for i in * ; do tar -cvzf - "$i" | gpg --encrypt --sign -r cold-storage@marlonjsilva.com.br > "$i".tar.gpg; done