The script will execute
date 2x
: 999,998x
: is a command which says do nothing and give an successful error
code which would be 0
Code: Select all
#!/bin/bash
date
for ((i=1;i<999999;i++));do
:
done
date
Script name: millionx (attached)
Isn't there a command for timing execution? If so, what's its name?
~
EDIT - an improved millionx file is available down a few posts, better to
use it.