Created
May 12, 2021 11:32
-
-
Save mitsugu/6b52bdebc9004cc326e7f4851cd5e926 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
cmd="$1*.txt" | |
files=`ls $cmd` | |
for tfile in $files | |
do | |
tmp=`echo $tfile | awk '$0 = substr($0, 0, length($0)-3)'` | |
ofile=$tmp$2 | |
base64 -d $tfile > $ofile | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment