Created blackbox_cat: Decrypt a file, cat it, shred it

This commit is contained in:
harrison
2014-11-06 00:17:59 -08:00
parent b5c778a08e
commit 8f2e8150b5

14
bin/blackbox_cat Executable file
View File

@@ -0,0 +1,14 @@
#!/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