Sponsored Content
Top Forums Shell Programming and Scripting How to see high values on top Post 302420192 by rdcwayx on Tuesday 11th of May 2010 02:17:09 AM
Old 05-11-2010
Code:
cat abcd.txt |grep "123"|awk {'print $3'} |sort|uniq -c |sort -nr


Last edited by Scott; 05-11-2010 at 05:20 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[Top output] NICE % high ?

Hi, I've got some CPU bottleneck on a HP-UX 11 server : i didn't understand it until i discover i've got an unusual high percentage of NICE% CPU regarding my DBRMS process (Sybase 12.x). How do i have to understand it and how to resolve it ? Thx. (0 Replies)
Discussion started by: eliador2001
0 Replies

2. UNIX for Advanced & Expert Users

Sun: High kernel usage & very high load averages

Hi, I am seeing very high kernel usage and very high load averages on my system (Although we are not loading much data to our database). Here is the output of top...does anyone know what i should be looking at? Thanks, Lorraine last pid: 13144; load averages: 22.32, 19.81, 16.78 ... (4 Replies)
Discussion started by: lorrainenineill
4 Replies

3. Linux

Help pinpointing high HTTPD CPU usage in TOP

Hi, new here and need some help. Sometimes my site is extremely slow, if when there aren't too many people on, whereas when there are over 300 online members the site may be very fast. We use CentOS, PHP 5.26. The server has 4GB and Plesk usually shows about 2 or 3 GB free. I believe I can see... (4 Replies)
Discussion started by: pspace
4 Replies

4. Shell Programming and Scripting

low & high values

on the file Ftp'd from the mainframe ,do we have any UNIX command to replace mainframe low and values to space or null. i tried using tr and it doesn't work ... Thanks (1 Reply)
Discussion started by: rlmadhav
1 Replies

5. Shell Programming and Scripting

How to sum values from top

Hi. Im looking for way to sum numbers from top. For example i have such command top -b -n | grep Cpu | cut -c 35 - 39 which give me output 97.0 . Ho can i do with that value any arithmetic actions (for example 97.0 +1)? Using c = $((top -b -n | grep Cpu | cut -c 35 - 39)) gives me... (8 Replies)
Discussion started by: qdf
8 Replies

6. AIX

fr and sr (from vmstat output) values are very high

Hi AIX Expert, the fr (page freed/page replacement) and sr (pages scanned by page-replacement algorithm) values from the vmstat output (see below please) are very high. I usually see this high value during the oracle database backup. In addition, the page scan/page steal/ page faults values... (7 Replies)
Discussion started by: Beginer0705
7 Replies

7. Shell Programming and Scripting

Identify high values "ÿ" in a text file using Unix command

I have high values (such as ÿÿÿÿ) in a text file contained in an Unix AIX server. I need to identify all the records which are having these high values and also get the position/column number in the record structure if possible. Is there any Unix command by which this can be done to : 1.... (5 Replies)
Discussion started by: devina
5 Replies

8. BSD

Very high nice percentage in top command

Hello Folks, Recently our FreeBSD 7.1 i386 system became very sluggish. Nothing much is happening over there & whatever is running takes eternity to complete. All the troubleshooting hinted towards a very high nice percentage. Can that be the culprit? Pasting snippets of top command,... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

9. Shell Programming and Scripting

Calculate average of top n% of values - UNIX

Hey guys, I have several huge tab delimited files which look like this: a 1 20 a 3 15 a 5 10 b 2 15 b 6 10 c 3 23 what I am interested is to calculate the average of top n% of data in third column. So for example for this file the top 50% values are: 23 20 (Please note that it... (11 Replies)
Discussion started by: @man
11 Replies

10. Shell Programming and Scripting

What is the relation between values from TOP and SAR commands?

Hi, Please have a look at the look at the below top and sar commands. top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}' CPU Load: 0.52 sar -u 1 1 Linux 3.10.0-514.16.1.el7.x86_64 (mymac) 06/01/2017 _x86_64_ (2 CPU) 03:27:40 PM CPU %user %nice ... (1 Reply)
Discussion started by: mohtashims
1 Replies
border(3XCURSES)					  X/Open Curses Library Functions					  border(3XCURSES)

NAME
border, box, wborder - add a single-byte border to a window SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br); int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl,chtype tr, chtype bl, chtype br); int box(WINDOW *win, chtype verch, chtype horch); DESCRIPTION
The border() and wborder() functions draw a border around the specified window. All parameters must be single-byte characters whose rendi- tion can be expressed using only constants beginning with ACS_. A parameter with the value of 0 is replaced by the default value. +-----------------------------------------------------------------------+ |Constant Values for Borders | +-----------------------------------------------------------------------+ | Parameter Default Constant Default Character | +-----------------------------------------------------------------------+ | verch ACS_VLINE | | | horch ACS_HLINE - | | ls ACS_VLINE | | | rs ACS_VLINE | | | ts ACS_HLINE - | | bs ACS_HLINE - | | bl ACS_BLCORNER + | | br ACS_BRCORNER + | | tl ACS_ULCORNER + | | tr ACS_URCORNER + | +-----------------------------------------------------------------------+ The call box(win, verch, horch) is a short form for wborder(win, verch, verch, horch, horch, 0, 0, 0, 0) When the window is boxed, the bottom and top rows and right and left columns overwrite existing text. PARAMETERS
ls Is the character and rendition used for the left side of the border. rs Is the character and rendition used for the right side of the border. ts Is the character and rendition used for the top of the border. bs Is the character and rendition used for the bottom of the border. tl Is the character and rendition used for the top-left corner of the border. tr Is the character and rendition used for the top-right corner of the border. bl Is the character and rendition used for the bottom-left corner of the border. br Is the character and rendition used for the bottom-right corner of the border. win Is the pointer to the window in which the border or box is to be drawn. verch Is the character and rendition used for the left and right columns of the box. horch Is the character and rendition used for the top and bottom rows of the box. RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR. ERRORS
None. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
add_wch(3XCURSES), addch(3XCURSES), attr_get(3XCURSES), attroff(3XCURSES), border_set(3XCURSES), libcurses(3XCURSES), attributes(5), stan- dards(5) SunOS 5.11 5 Jun 2002 border(3XCURSES)
All times are GMT -4. The time now is 09:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy