Not sure but does AIX have the 'time' command? If so, preface your command with the time command
This will provide the system time, the user time and the total time.
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Hi All
Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom.
Thanks
Ed (9 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Hello,
I have one script which takes some time to complete.
I Need the total exact time taken by this script.
How can i modify this script.
Regards,
Sam. (21 Replies)
I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
LEARN ABOUT OPENDARWIN
time
TIME(1) BSD General Commands Manual TIME(1)NAME
time -- time command execution
SYNOPSIS
time [-al] [-h | -p] [-o file] utility [argument ...]
DESCRIPTION
The time utility executes and times the specified utility. After the utility finishes, time writes to the standard error stream, (in sec-
onds): the total time elapsed, the time used to execute the utility process and the time consumed by system overhead.
Available options:
-a If the -o flag is used, append to the specified file rather than overwriting it. Otherwise, this option has no effect.
-h Print times in a human friendly format. Times are printed in minutes, hours, etc. as appropriate.
-l The contents of the rusage structure are printed as well.
-o file
Write the output to file instead of stderr. If file exists and the -a flag is not specified, the file will be overwritten.
-p Makes time output POSIX.2 compliant (each time is printed on its own line).
Some shells may provide a builtin time command which is similar or identical to this utility. Consult the builtin(1) manual page.
ENVIRONMENT
The PATH environment variable is used to locate the requested utility if the name contains no '/' characters.
DIAGNOSTICS
If utility could be timed successfully, its exit status is returned. If utility terminated abnormally, a warning message is output to
stderr. If the utility was found but could not be run, the exit status is 126. If no utility could be found at all, the exit status is 127.
If time encounters any other error, the exit status is between 1 and 125 included.
SEE ALSO builtin(1), csh(1), getrusage(2), wait(2)STANDARDS
The time utility is expected to conform to ISO/IEC 9945-2:1993 (``POSIX'').
HISTORY
A time command appeared in Version 3 AT&T UNIX.
BSD June 6, 1993 BSD