Working part 2 solution

This commit is contained in:
2024-12-05 20:46:22 +08:00
parent 6a0ef4fea6
commit b66b2d098e
2 changed files with 59 additions and 4 deletions

View File

@ -17,10 +17,7 @@ do
# Filter rules that only has included pages
done <<< "$( < input-rules grep -E "($GREP_EXPR)\\|($GREP_EXPR)" | sed 's/|/,.*/')"
# All rules have passed
if [[ $PASS_RULES -eq 0 ]]
then
printf "%s\n" "$LINE"
fi
[[ $PASS_RULES -eq 0 ]] && printf "%s\n" "$LINE"
done < input-updates |
tr ',' ' ' |
awk '