Write the script ~/morning.sh in the editor. It must have: A comment on the first line. cat ~/shop/rota.txt grep -c ERROR ~/logs/till.log Then run it with bash.