samedi 4 juillet 2020

Listing files older than X minutes using it with ls command

if [[ $line == SECURITYRPT && (((If the file is older than 5minutes))) ]] then echo "$line" else echo "file present not older than 2minutes" fi

What condition to put after && to list files older than 5minutes.

Aucun commentaire:

Enregistrer un commentaire