1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-25 05:12:14 +02:00
Files
big-list-of-naughty-strings/scripts/texttobase64.sh
Romuald Brunet 0492c974f0 Remove trailing \n from texttobase64.sh
Without this, all base64 strings will get a trailing \n in their encoded
form
2016-02-11 10:40:18 +01:00

10 lines
197 B
Bash
Executable File

commentChar="#"
while read p; do
firstChar=${p:0:1}
if [[ "$firstChar" != "$commentChar" && "$firstChar" != "" ]] ; then
echo -n $p | base64;
else
echo $p;
fi
done <blns.txt