#!/bin/bash dir="/usr/local/etc/httpd" name="httpd.conf" test=$(find $dir -name "$name" -mmin -2 -maxdepth 1) #[ ! -z $test ] && echo "$name was modified in the last 2 minutes" [ ! -z $test ] && echo -e "\033[1;31m❗️ ️$name was modified in the last 5 minutes\033[0m"