Subject: Internal script counter with FILE.TXT.
Example: time of file download, and so on.
now=$(date +'%s')sec;
echo ""
echo ""
The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.
Timmer command, Input: 5 seconds.
sleep 5s
InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")
echo "$InfTimExe" >> Date.txt
unset -v InfTimExe
Output: 5 seconds.
echo "[INF] Internal run time of the script:"
echo ""
cat Date.txt
rm Date.txt
echo ""
echo ""
exit