#!/bin/bash cat debug.txt /home/minetest/.minetest/debug.txt | grep -e "WARNING\|ERROR\|Separator\|-------" | awk '!n[$0]++' > debug.txt