Created blackbox_cat: Decrypt a file, cat it, shred it
This commit is contained in:
14
bin/blackbox_cat
Executable file
14
bin/blackbox_cat
Executable 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
|
||||||
Reference in New Issue
Block a user