1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-24 21:01:32 +02:00
Files
big-list-of-naughty-strings/scripts/texttobase64.sh
Victor Engmark ea0be30283 Don't mangle backspaces in input
Shellcheck test SC2162.
2018-11-17 07:09:34 +13:00

16 lines
267 B
Bash
Executable File

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