Skip to content

Instantly share code, notes, and snippets.

@allansrc
Created August 19, 2020 00:56
Show Gist options
  • Save allansrc/79f5af3dd4727f93f9ea88e861e4b149 to your computer and use it in GitHub Desktop.
Save allansrc/79f5af3dd4727f93f9ea88e861e4b149 to your computer and use it in GitHub Desktop.
#!/bin/bash
yourfilenames=`ls *.png`
for eachfile in $yourfilenames
do
echo $eachfile
test="$(cat $eachfile | base64)"
echo "BASE $eachfile" >> test64.txt
echo $test >> test64.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment