New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
you could always just grep it?
Francisco
I tried that, no dice.
time cat /testfile | grep real
^^^^^^^^ Doesn't work.
2>&1 | grep real
use full path perhaps?
or use 2> while "copying" to file.
edit: like what rds100 said.
/usr/bin/time -q -f "%e" cat /testfile > /dev/null
Make sure you use the full path to time, otherwise you'll get the shell built-in, which doesn't work the same.
LoL, I didn't have time installed apparently... even though it was showing me the real/user/sys output. Weird.
Installed it with apt-get and fixed it. Thanks all!
Not so weird. Bash has a version of time built in, which doesn't offer the full set of features that the real version has.
FTW