mirror of
https://github.com/minimaxir/big-list-of-naughty-strings.git
synced 2025-09-02 10:22:39 +02:00
16 lines
271 B
Bash
Executable File
16 lines
271 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
|