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
W2DO(1) 						User Contributed Perl Documentation						   W2DO(1)

NAME
w2do - a simple text-based todo manager SYNOPSIS
w2do [-l] [-t task] [-g group] [-d date] [-p priority] [-f|-u] w2do -a task [-g group] [-d date] [-p priority] [-f|-u] w2do -c id [-t task] [-g group] [-d date] [-p priority] [-f|-u] w2do -r id w2do [options] DESCRIPTION
w2do is a simple to use yet efficient command-line todo manager written in Perl. OPTIONS
General Options -l, --list Display items in the task list. All tasks are listed by default, but desired subset can be easily selected via specifying options as well. Since listing is the default action, this option can be safely omitted. -a task, --add task Add new item with selected task name to the task list. When no additional specifying options are given, the group general, the due date anytime and the priority 3 is used by default and the task is marked as unfinished. -c id, --change id Change item with selected id in the task list. Further specifying options are required in order to take any effect. -r id, --remove id Remove item with selected id from the task list. --change-group group Change all items in the selected group. Further specifying options are required in order to take any effect. --remove-group group Remove all items from the selected group. --purge-group group Remove all finished items from the selected group. --change-date date Change all items with selected due date. Further specifying options are required in order to take any effect. --remove-date date Remove all items with selected due date. --purge-date date Remove all finished items with selected due date. --change-pri priority Change all items with selected priority. Further specifying options are required in order to take any effect. --remove-pri priority Remove all items with selected priority. --purge-pri priority Remove all finished items with selected priority. --change-old Change all items with passed due date. Further specifying options are required in order to take any effect. --remove-old Remove all items with passed due date. --purge-old Remove all finished items with passed due date. --change-all Change all items in the task list. Further specifying options are required in order to take any effect. --remove-all Remove all items from the task list. --purge-all Remove all finished items from the task list. --undo Revert last action. When invoked, the data are restored from the backup file (i.e. "~/.w2do.bak" by default), which is deleted at the same time. --groups Display comma-delimited list of all groups in the task list. --stats Display detailed task list statistics. -h, --help Display help message and exit. -v, --version Display version information and exit. Specifying Options -t task, --task task Specify the task name. -g group, --group group Specify the group name. The group name should be a single word with maximum of 10 characters, but longer names are shortened automatically. -d date, --date date Specify the due date. Available options are anytime, today, yesterday, tomorrow, month, year, or an exact date in the YYYY-MM-DD format, e.g. 2008-06-17 for 17 June 2008. -p priority, --priority priority Specify the priority. Available options are integers between 1 and 5, where 1 represents the highest priority. -f, --finished Specify the finished task. -u, --unfinished Specify the unfinished task. Additional Options -s file, --savefile file Use selected file instead of the default "~/.w2do" as a save file. -w width, --width width Use selected line width; the minimal value is 75. -q, --quiet Avoid displaying messages that are not necessary. -V, --verbose Display all messages; this is the default option. -C, --colour, --color Use coloured output instead of the default plain text version. -X, --no-colour, --no-color Use plain text output (no colours); this is the default option. -b, --bare Do not display table header and group separators. -B, --no-bare Display table header and group separators; the default option. -I, --no-id Do not display ID column in the listing. --with-id Display ID column in the listing; the default option. -G, --no-group Do not display group column in the listing. --with-group Display group column in the listing; the default option. -D, --no-date Do not display due date column in the listing. --with-date Display due date column in the listing; the default option. -P, --no-priority Do not display priority column in the listing. --with-priority Display priority column in the listing; the default option. -S, --no-state Do not display state column in the listing. --with-state Display state column in the listing; the default option. ENVIRONMENT
W2DO_SAVEFILE Use selected file instead of the default "~/.w2do" as a save file. W2DO_WIDTH Use selected line width; the minimal value is 75. FILES
~/.w2do Default save file. ~/.w2do.bak Default backup file. SEE ALSO
w2html(1), w2text(1), perl(1). BUGS
To report bugs or even send patches, you can either add new issue to the project bugtracker at <http://code.google.com/p/w2do/issues/>, visit the discussion group at <http://groups.google.com/group/w2do/>, or you can contact the author directly via e-mail. AUTHOR
Written by Jaromir Hradilek <jhradilek@gmail.com>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included as a file called FDL in the main directory of the w2do source package. COPYRIGHT
Copyright (C) 2008, 2009, 2010 Jaromir Hradilek This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Version 2.3.1 2010-02-13 W2DO(1)
All times are GMT -4. The time now is 11:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy