Sponsored Content
Full Discussion: occurances
Top Forums UNIX for Dummies Questions & Answers occurances Post 302275237 by vgersh99 on Friday 9th of January 2009 01:29:38 PM
Old 01-09-2009
Code:
nawk -F'happy' 'NF==2' myFile

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Counting Occurances in Two Files

I have two files I want to compare, one is a list of variables and the other is a text file COBOL program. Basically what I want to do is display only those variables that appear in the COBOL program only once. However I would also accept a count of each variable as it appears in the COBOL... (2 Replies)
Discussion started by: Keith Gergel
2 Replies

2. UNIX for Dummies Questions & Answers

Count occurances in a file

Hi, I have a fixed width file in the following format Sr.No A.No Name 1 2 PPP 3 4 PPP 5 6 TTT 7 8 OOO 9 10 OOO 11 12 OOO The 3rd column starts at position 10 and ends at 15. I want to count the number of occurances of each Name and output to a file Example in the... (2 Replies)
Discussion started by: samit_9999
2 Replies

3. Shell Programming and Scripting

Count occurances of X Y Z in a file in 1 go.

Hi. I need to count multiple occurrences of X Y Z in a file in 1 go. At the moment I have the following scripts: ssh readonly@$ServerIP 'YEAR=xx;DAY=xx;MONTH=xx;LMONTH=xx;for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 \ 16 17 18 19 20 21 22 23; do cat... (13 Replies)
Discussion started by: msullivan
13 Replies

4. Shell Programming and Scripting

removing occurances starting with [

I have this line in a file gtgti1/gtgticcrunit1/gtgti_ccrunit_10n/port_arbiter1/port7 = gtgti1/gtgticcrunit1/gtgti_ccrunit_10n/port_arbiter1/port7; gtgti1/gtgticcrunit1/gtgti_ccrunit_10n/port_arbiter1/np_ing0_head = gtgti1/gtgticcrunit1/gtgti_ccrunit_10n/port_arbiter1/np_ing0_head; I want... (11 Replies)
Discussion started by: pitagi
11 Replies

5. UNIX for Dummies Questions & Answers

replacing all occurances

How would i replace all occurreneces of Tim(ignoring the case) with Timithoy in the file "file1" and then save it to "newfile" (2 Replies)
Discussion started by: JamieMurry
2 Replies

6. UNIX for Dummies Questions & Answers

changing all occurances

how wouldi change all occurances of that to they regardless of the number of times it appears on a line? (2 Replies)
Discussion started by: trob
2 Replies

7. Shell Programming and Scripting

Counts based on occurances

Hi, I have a file with 2500 entries. There are many duplicates,triplicates symbols in my file in the first column and the second column has categories(high/medium/low) . I want to have count for the occurances of each category for each unique symbol ABC high ABC high ABC medium ABC ... (2 Replies)
Discussion started by: Diya123
2 Replies

8. Shell Programming and Scripting

Get number of occurances in a file

I want to get the count of occurance of a user in a file. abc abc bcd bcd bcd xyz The result should be like abc 2 bcd 3 xyz 1 (2 Replies)
Discussion started by: Sanjeev Yadav
2 Replies

9. Shell Programming and Scripting

occurances

Hi, I have 2 files File 1 ABC XYZ MNO WER FDS CFG File 2 ABC_123456_234567 ABC_123456_234567 ABC_123456_234567 ABC_123456_234567 ABC_123456_234567 (1 Reply)
Discussion started by: Diya123
1 Replies

10. Shell Programming and Scripting

Count the occurances of numbers

I have a file as shown below. I need to count the unique occurrences of numbers in the first and second column only if the third column is <= 10. Otherwise print the corresponding numbers as zero. Thanks in advance!:) 58 80 40.74 76 80 9.78 76 80 8 12 6 9 30 28 8.23 45 12 ... (13 Replies)
Discussion started by: andreaalex
13 Replies
SQL::ReservedWords::PostgreSQL(3pm)			User Contributed Perl Documentation		       SQL::ReservedWords::PostgreSQL(3pm)

NAME
SQL::ReservedWords::PostgreSQL - Reserved SQL words by PostgreSQL SYNOPSIS
if ( SQL::ReservedWords::PostgreSQL->is_reserved( $word ) ) { print "$word is a reserved PostgreSQL word!"; } DESCRIPTION
Determine if words are reserved by PostgreSQL. METHODS
is_reserved( $word ) Returns a boolean indicating if $word is reserved by either PostgreSQL 7.3, 7.4, 8.0 or 8.1. is_reserved_by_postgresql7( $word ) Returns a boolean indicating if $word is reserved by either PostgreSQL 7.3 or 7.4. is_reserved_by_postgresql8( $word ) Returns a boolean indicating if $word is reserved by either PostgreSQL 8.0 or 8.1. reserved_by( $word ) Returns a list with PostgreSQL versions that reserves $word. words Returns a list with all reserved words. EXPORTS
Nothing by default. Following subroutines can be exported: is_reserved is_reserved_by_postgresql7 is_reserved_by_postgresql8 reserved_by words SEE ALSO
SQL::ReservedWords <http://www.postgresql.org/docs/manuals/> AUTHOR
Christian Hansen "chansen@cpan.org" COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2008-03-28 SQL::ReservedWords::PostgreSQL(3pm)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy