Easy measure time took in a bash script
In Bash, the $SECONDS
variable is a special variable that automatically keeps
track of the number of seconds since the current shell or script started
executing. It starts counting from the moment the script begins running.
#!/bin/bash
# Reset the timer to zero.
SECONDS=0
# Do something.
sleep 5
# Print the time elapsed.
echo "Time taken: $SECONDS seconds"
Other notes
- Change permissions of matching files recursively
- plan9 Compile drawterm on Fedora 38
- plan9 Mount Plan9 over network
- Sane defaults for tmux with more visible statusbar
- Parse RSS feeds with Lua
- c Embedding resources into binary with C
- Edsger W. Dijkstra Manuscripts ebook
- dcss Dungeon Crawl Stone Soup - New player guide
- Simple presentations with Markdown
- c Sending signals to C programs
- 60's IBM Computers Commercial
- Execute not blocking async shell command in C#
- Development environments with Nix
- plan9 Drawing Pixels in Plan9
- plan9 Install Plan9port on Linux