#!/bin/bash find . -name '*.gpg' | while read f ; do echo "Unciphering $f" n=${f%.gpg} cat $f | gpg -d > $n done