|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620169 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
audet   |
coolcommand
awk - oneliner to compute the total of a column |
Description
Here is a oneliner to compute the total of a column:
# echo file | awk 'BEGIN { i = 0} { i += $5 } END { print i }'
Note: The BEGIN statement can be omitted:
# echo file | awk '{ i += $5 } END { print i }'
For example the total resident memory in IBM AIX:
# ps auxwww | awk '{ i += $5 } END { print i }' |
Example
ps auxwww | awk '{ i += $5 } END { print i }' |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: perl command to get current epoch time
Example: # perl -e 'print time, "\n"'
[show me the details] |
coolcommand: how to reserve or lock a terminal under aix 5L
Example: lock -30
[show me the details] |
coolcommand: metaoffline - how to suspend the use of a metadevice on a mirror in Solaris Volume Manager
Example: metaoffline d0 d2
[show me the details] |
coolcommand: errclear - deletes entries from the error log in IBM AIX
Example: errclear 0
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51940 |
| Category AIX | 49007 |
| Category General UNIX | 47532 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|