1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-20 10:51:28 +02:00
Files
big-list-of-naughty-strings/scripts/texttobase64.sh
Victor Engmark d0a73016d5 Add a shebang line
As recommended by shellcheck.
2018-11-17 07:08:19 +13:00

14 lines
225 B
Bash
Executable File

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