coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Tuesday May 21, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 29 guests online

Newest Member

nbewwmbxog

Hit Counter
11551371 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620169
Members:22813





Search coolcommands.com
Search Keyword:


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



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51940
Category AIX49007
Category General UNIX47532
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum