Sponsored Content
Top Forums Shell Programming and Scripting Select only top "N" records based on column value Post 302470394 by radoulov on Wednesday 10th of November 2010 03:22:04 AM
Old 11-10-2010
Yes,
it should work.
This User Gave Thanks to radoulov For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour

Hi, We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0. Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ? I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc. ... (1 Reply)
Discussion started by: sameerdes
1 Replies

2. UNIX for Dummies Questions & Answers

Select records based on search criteria on first column

Hi All, I need to select only those records having a non zero record in the first column of a comma delimited file. Suppose my input file is having data like: "0","01/08/2005 07:11:15",1,1,"Created",,"01/08/2005" "0","01/08/2005 07:12:40",1,1,"Created",,"01/08/2005"... (2 Replies)
Discussion started by: shashi_kiran_v
2 Replies

3. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies

4. AIX

AIX 5.3 - Discrepancies between "top" and "vmstat"

Can someone explain the differences I'm seeing below in TOP and VMSTAT commands on my AIX 5.3 server? Thanks! CPUs: 4; load averages: 0.86, 0.97, 0.97 18:09:26 926 processes: 4 stopped, 922 running CPU states: 78.4% idle, 8.5% user, 12.6% kernel, 0.3% wait Memory: 23680M Total.... (1 Reply)
Discussion started by: troym72
1 Replies

5. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

6. Shell Programming and Scripting

AWK for multiple line records RS="^" FS="#"

I have to pull multiple line records with ^ as the record separator(RS)... # should be my field separator (FS)... Sample record is: ^-60#ORA-00060: deadlock detected while waiting for resource ORA-00001: unique constraint (SARADM.TCKNUM_PK) violated#PROC:AVAILABLE_FOR_GETNXTTIC#02/27/2012... (7 Replies)
Discussion started by: Vidhyaprakash
7 Replies

7. Shell Programming and Scripting

Substituting comma "," for dot "." in a specific column when comma"," is a delimiter

Hi, I'm dealing with an issue and losing a lot of hours figuring out how i would solve this. I have an input file which looks like this: ('BLABLA +200-GRS','Serviço ','TarifaçãoServiço','wap.bla.us.0000000121',2985,0,55,' de conversão em escada','Dia','Domingos') ('BLABLA +200-GRR','Serviço... (6 Replies)
Discussion started by: poliver
6 Replies

8. Shell Programming and Scripting

awk based script to print the "mode(statistics term)" for each column in a data file

Hi All, Thanks all for the continued support so far. Today, I need to find the most occurring string/number(also called mode in statistics terminology) for each column in a data file (.csv type). For one column of data(1.txt) like below Sample 1 2 2 3 4 1 1 1 2 I can find the mode... (6 Replies)
Discussion started by: ks_reddy
6 Replies

9. Shell Programming and Scripting

Choosing between repeated entries based on the "absolute values" of a column

Hello, I was looking for a way to select between the repeated entries (column1) based on the values of absolute values of column 3 (larger value). For example if the same gene id has FC value -2 and 1, I should get the output as -2. Kindly help. GeneID Description FC ... (2 Replies)
Discussion started by: Sanchari
2 Replies

10. UNIX for Beginners Questions & Answers

Extract delta records using with "comm" and "sort" commands combination

Hi All, I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file. comm -3 < sort file_old < sort file_new > new_file I am getting the below error: -ksh: sort: cannot open But if I do... (7 Replies)
Discussion started by: njny
7 Replies
tapset::task(3stap)													       tapset::task(3stap)

NAME
tapset::task - systemtap task tapset DESCRIPTION
task_current The current task_struct of the current task See function::task_current(3stap) for details. task_parent The task_struct of the parent task See function::task_parent(3stap) for details. task_state The state of the task See function::task_state(3stap) for details. task_execname The name of the task See function::task_execname(3stap) for details. task_pid The process identifier of the task See function::task_pid(3stap) for details. pid2task The task_struct of the given process identifier See function::pid2task(3stap) for details. pid2execname The name of the given process identifier See function::pid2execname(3stap) for details. task_tid The thread identifier of the task See function::task_tid(3stap) for details. task_gid The group identifier of the task See function::task_gid(3stap) for details. task_egid The effective group identifier of the task See function::task_egid(3stap) for details. task_uid The user identifier of the task See function::task_uid(3stap) for details. task_euid The effective user identifier of the task See function::task_euid(3stap) for details. task_prio The priority value of the task See function::task_prio(3stap) for details. task_nice The nice value of the task See function::task_nice(3stap) for details. task_cpu The scheduled cpu of the task See function::task_cpu(3stap) for details. task_open_file_handles The number of open files of the task See function::task_open_file_handles(3stap) for details. task_max_file_handles The max number of open files for the task See function::task_max_file_handles(3stap) for details. SEE ALSO
function::task_current(3stap), function::task_parent(3stap), function::task_state(3stap), function::task_execname(3stap), function::task_pid(3stap), function::pid2task(3stap), function::pid2execname(3stap), function::task_tid(3stap), function::task_gid(3stap), function::task_egid(3stap), function::task_uid(3stap), function::task_euid(3stap), function::task_prio(3stap), function::task_nice(3stap), function::task_cpu(3stap), function::task_open_file_handles(3stap), function::task_max_file_handles(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::task(3stap)
All times are GMT -4. The time now is 08:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy