I have this shell script which executes the following command:
#!/bin/sh
echo -e " {\"username\":\"user\",\"password\":\"mypasswd\",\"data\"" > $file
How do I need to adjust this in order to measure the execution time and echo both, execution time and script output to a file?
Any tips?
Use the
timecommand. For example: