Bash scripting

This commit is contained in:
2024-11-15 22:12:29 +05:30
parent 02eed13731
commit 92742e091b
4 changed files with 218 additions and 1 deletions

13
time_measurement.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#start time measurement from here
START=$(date +%s)
CURRENT_DIRECTORY=$(pwd)
sleep 2 #sleep 2 seconds
END=$(date +%s)
#end time measurement
DIFFERENCE=$(( END - START ))
echo
echo Time elapsed: $DIFFERENCE seconds.