Skip to content

Instantly share code, notes, and snippets.

@mitsugu
Created May 12, 2021 11:32
Show Gist options
  • Save mitsugu/6b52bdebc9004cc326e7f4851cd5e926 to your computer and use it in GitHub Desktop.
Save mitsugu/6b52bdebc9004cc326e7f4851cd5e926 to your computer and use it in GitHub Desktop.
#! /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