I wish to find out how long an operation takes in a Linux shell script. How can I do this?
Just to help anyone like me that receive an error:
arithmetic expression: expecting primary: "-"
Check your shellscript that shall start with:
#!/bin/bash
Cheers!