calculate elapsed seconds bettwen current time and a file timestamp 25/04/2021 nickollas Shell Script echo $(( $( date +%s )-$( date -r /etc/passwd +%s ) )) Share this:ShareEmailPrintFacebookWhatsAppLike Loading... Related