On Sat, 15 Dec 2000, Shea Martin wrote:
> Here is an example of what I want to do:
>
> Say I would like to print the time it takes to list the contents of /dev
> printing only the line real 0m2.546s.
>
> time ls | grep -h real
>
> this outputs nothing, b/c grep only searchs the output of ls, not the
> output of time.
>
> let me know if you gots a nifty sol'n. I am sure it is very simple.
export TIMEFORMAT="real %lR"
time ls > /dev/null
time is a bash built-in; "man bash" for more info.
--
Chris F.A. Johnson [EMAIL PROTECTED]
=================================================================
[EMAIL PROTECTED] http://cfaj.freeshell.org
[EMAIL PROTECTED] http://members.home.net/c.f.a.johnson
_______________________________________________
Stormlinux-users-list mailing list
[EMAIL PROTECTED]
http://www.stormix.com/community/lists/listinfo/stormlinux-users-list