#!/bin/bash
# Adds a way to more simply insert flags into text
# Each flag is represented with an ftag (text that is preceded by &&)
# Available flags:
# Great Britain - &&gb
if [ -z "$1" ]; then
echo First parameter must be a path
exit
fi
for file in $(find "$1" -type f -name "*.html"); do
# Replaces "&&gb" with "
"
sed -i 's/&&gb/
/g' "$file"
done