02-08-2016
Apologies!it was typo error.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking to get a output of "2 apple found" from the awk command below.
black:34104 tomonorisoejima$ cat tomo
apple apple
black:34104 tomonorisoejima$ awk '/apple/ {count++}END{print count " apple found"}' tomo
1 apple found
black:34104 tomonorisoejima$ (5 Replies)
Discussion started by: soemac
5 Replies
2. Shell Programming and Scripting
Can anyone help me to count number of occurrence of the strings based on column value. Say i have 300 files with 1000 record length from which i need to count the number of occurrence string which is existing from 213 to 219. Some may be unique and some may be repeated. (8 Replies)
Discussion started by: zooby
8 Replies
3. Shell Programming and Scripting
Hi
I have the following file
ENST001 ENST002 4 4 4 88 9 9
ENST004 3 3 3 99 8 8
ENST009 ENST010 ENST006 8 8 8 77 8 8
Basically I want to count how many times ENST* is repeated in each line so the expected results is
2
1
3
Any suggestion please ? (4 Replies)
Discussion started by: fuad_
4 Replies
4. Shell Programming and Scripting
if there's a file containing:
money king money queen money cat money also money king
all those strings are on one line in the file.
how can i find out how many times "money king" shows up in the line?
egrep -c "money king" wont work. (7 Replies)
Discussion started by: SkySmart
7 Replies
5. Shell Programming and Scripting
Hi,
I have a file which contained a set of numbers like
Col1 col2 col3 col4
1 sa 13 0
2 sb 14 0
3 sc 15 9
4 sd 16 -9
5 sd 20 -2
6 sd 20 4
Here in last column I need to count the zeros, positive values and negative values,
please help me to do that. (2 Replies)
Discussion started by: Shenbaga.d
2 Replies
6. Shell Programming and Scripting
Hi,
I want to count the occurrences of strings in a column and display as in example below:
Input:
get1 345 789 098
get2 567 982 090
fet4 777 610 632
get1 800 544 230
get1 600 788 451
get2 892 321 243
get1 673 111 235
fet3 789 220 278
fet4 768 222 341
output:
4 get1 345 789... (7 Replies)
Discussion started by: aydj
7 Replies
7. UNIX for Dummies Questions & Answers
count occurrence of column3 in column2 with awk
Input:
AA BB
BB AA
BB CC
AA BB
CC AA
CC BB
CC CC
BB BB
Output:
AA BB 3 (1 Reply)
Discussion started by: aydj
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have a table that looks like what is shown below:
AA
BB
CC
XY
PQ
RS
AA
BB
CC
XY
RS
I would like the total counts depending on the set they belong to:
if search pattern is in {AA, BB, CC} --> count them as Type1 | wc -l (3 Replies)
Discussion started by: Gussifinknottle
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I have an input file as below. I would like to count the occurrence of pattern matching 8th field for each line.
Input:
field_01 field_02 field_03 field_04 field_05 field_06 field_07 field_08
TA T TA T TA TA TA... (3 Replies)
Discussion started by: huiyee1
3 Replies
10. Shell Programming and Scripting
Hello Team,
I need your help on the following:
My input file a.txt is as below:
3330690|373846|108471
3330690|373846|108471
0640829|459725|100001
0640829|459725|100001
3330690|373847|108471
Here row 1 and row 2 of column 1 are identical but corresponding column 2 value are... (4 Replies)
Discussion started by: angshuman
4 Replies
LEARN ABOUT DEBIAN
tk::numentry
NumEntry(3pm) User Contributed Perl Documentation NumEntry(3pm)
NAME
Tk::NumEntry - A numeric Entry widget with inc. & dec. Buttons
SYNOPSIS
use Tk::NumEntry;
$parent->NumEntry(?-option=>value, ...?);
DESCRIPTION
Tk::NumEntry defines a widget for entering integer numbers. The widget also contains buttons for increment and decrement.
Tk::NumEntry supports all the options and methods that the plain NumEntry widget provides (see Tk::NumEntryPlain), plus the following
options
STANDARD OPTIONS
Besides the standard options of the Entry widget NumEntry supports:
-orient -repeatdelay -repeatinterval
The -orient option specifies the packing order of the increment and decrement buttons. This option can only be set at creation time.
WIDGET-SPECIFIC OPTIONS
Name: buttons
Class: Buttons
Switch: -buttons
Fallback: 1
Boolean that defines if the inc and dec buttons are visible.
Switch: -readonly
Fallback: 0
If -readonly is set to a true value, then the value can only be changed by pressing the increment/decrement buttons. This option can
only be set at creation time.
WIDGET METHODS
Subclasses of NumEntry may override the following methods to use different widgets for the composition of the NumEntry. These are:
NumEntryPlainWidget (usually "NumEntryPlain"), FireButtonWidget (usually "FireButton", IncFireButtonWidget and DecFireButtonWidget.
FireButtonWidget is used if IncFireButtonWidget or DecFireButtonWidget are not defined.
AUTHOR
Graham Barr <gbarr@pobox.com>
Current maintainer is Slaven Rezic <slaven@rezic.de>.
ACKNOWLEDGEMENTS
I would to thank Achim Bohnet <ach@mpe.mpg.de> for all the feedback and testing. And for the splitting of the original Tk::NumEntry into
Tk::FireButton, Tk::NumEntryPlain and Tk::NumEntry
COPYRIGHT
Copyright (c) 1997-1998 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
Except the typo's, they blong to Achim :-)
perl v5.10.0 2008-10-08 NumEntry(3pm)