#!/bin/bash journalctl -u epicyon | grep 'EX: ' > .exceptions.txt if [ ! -f .exceptions.txt ]; then echo 'No exceptions' else cat .exceptions.txt fi