Files
blackbox/bin/blackbox_cat

15 lines
285 B
Bash
Executable File

#!/usr/bin/env bash
#
# blackbox_cat.sh -- Decrypt a file, cat it, shred it
#
set -e
. _blackbox_common.sh
for param in """$@""" ; do
unencrypted_file=$(get_unencrypted_filename "$param")
blackbox_edit_start "$param"
cat $unencrypted_file
shred_file "$unencrypted_file"
done