Example 1
/ERROR/ { if ($0 !~ /notThisOne/) print NR $0 }
This script prints all lines with the word ERROR but without a word notThisOne. The original line number is printed in front of each line printed.
docker image prune -a --filter "until=24h"
docker container prune --filter "until=24h"
docker network prune --filter "until=24h"
docker volume prune
{
if (match($0,/stat\.X[0-9][0-9][0-9]/)) tab = substr($0,RSTART+6,RLENGTH-6);
if (tab + 0 >= 70 && tab + 0 <= 120) { print tab; }
}