Possible Duplicate:
In the bash shell, what is “ 2>&1 ”?
#echo "[+] Creating $count files"
_remount
create=$((time ./dirtest $testdir $count $size) 2>&1)
Possible Duplicate:
In the bash shell, what is “ 2>&1 ”?
#echo "[+] Creating $count files"
_remount
create=$((time ./dirtest $testdir $count $size) 2>&1)
It means that the standard error descriptor stderr
(2) is to be redirected to the standard output descriptor stdout
(1). Notice that the &
ensures that the 1
is interpreted as a file descriptor and not a filename.
It redirects standard error to the standard output. This way the result written to stderr will be stored in the variable.