Sponsored Content
Full Discussion: Counting words
Top Forums Shell Programming and Scripting Counting words Post 302368201 by kinny on Wednesday 4th of November 2009 10:03:17 AM
Old 11-04-2009
I need the grand total as well
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Counting words in a file

I'm trying to figure out a way to count the number of words in the follwing file: cal 2002 > file1 Is there anyway to do this without using wc but instead using the cut command? (1 Reply)
Discussion started by: r0mulus
1 Replies

2. UNIX for Dummies Questions & Answers

counting words then amending to a file

i want to count the number of words in a file and then redirect this to a file echo 'total number of words=' wc -users>file THis isnt working, anyone any ideas. (1 Reply)
Discussion started by: iago
1 Replies

3. Programming

Counting characters, words, spaces, punctuations, etc.

I am very new to C programming. How could I write a C program that could count the characters, words, spaces, and punctuations in a text file? Any help will be really appreciated. I am doing this as part of my C learning exercise. Thanks, Ajay (4 Replies)
Discussion started by: ajay41aj
4 Replies

4. UNIX for Dummies Questions & Answers

counting words

if i have a long list of data, with every line beginning with an ip-address, like this: 62.165.8.187 - - "GET /bestandnaam.html HTTP/1.1" 200 5848 "http://www.domeinnaam.nl/bestandnaam.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" how do i count which ip-adresses are mentioned... (3 Replies)
Discussion started by: FOBoy
3 Replies

5. Programming

Counting the words in a file

Please find the below program. It contains the purpose of the program itself. /* Program : Write a program to count the number of words in a given text file */ /* Date : 12-June-2010 */ # include <stdio.h> # include <stdlib.h> # include <string.h> int main( int argc, char *argv ) {... (6 Replies)
Discussion started by: ramkrix
6 Replies

6. Shell Programming and Scripting

Help in counting the no of repeated words with count in a file

Hi Pls help in solving my doubt.Iam having file like below file1.txt priya jenny jenny priya raj radhika priya bharti bharti Output required: I need a output like count of repeated words with name for ex: priya 3 jenny 2 (4 Replies)
Discussion started by: bha148
4 Replies

7. Shell Programming and Scripting

counting words with perl?

how to use perl to count number of lines, words characters in a file. (3 Replies)
Discussion started by: winter9
3 Replies

8. Shell Programming and Scripting

Counting occurrence of all words in a file

Hi, Given below is the input file: http://i53.tinypic.com/2vmvzb8.png Given below is what the output file should look like: http://i53.tinypic.com/1e6lfq.png I know how to count the occurrence of 1 word from a file, but not all of them. Can someone help please? An explanation on the... (1 Reply)
Discussion started by: r4v3n
1 Replies

9. Shell Programming and Scripting

Counting specific words from the log

Hi, I need a shell script which can provide details from error logs like this Aug 23 21:19:41 red mountd: authenticated mount request from bl0110.bang.m pc.local:651 for /disk1/jobs (/disk1) Aug 23 08:49:52 red dhcpd: DHCPDISCOVER from 00:25:90:2b:cd:7c via eth0: unknown client Aug 24... (2 Replies)
Discussion started by: ratheeshp
2 Replies

10. Shell Programming and Scripting

Counting occurrences of all words in multiple files

Hey Unix gurus, I would like to count the number occurrences of all the words (regardless of case) across multiple files, preferably outputting them in descending order of occurrence. This is well beyond my paltry shell scripting ability. Researching, I can find many scripts/commands that... (4 Replies)
Discussion started by: twjolson
4 Replies
Bio::Tools::Protparam(3pm)				User Contributed Perl Documentation				Bio::Tools::Protparam(3pm)

NAME
Bio::Tools::Protparam - submit to and parse output from protparam ; SYNOPSIS
my $gb = new Bio::DB::GenBank(-retrievaltype => 'tempfile' , -format => 'Fasta'); my @ids=qw(O14521 O43709 O43826); my $seqio = $gb->get_Stream_by_acc(@ids ); while( my $seq = $seqio->next_seq ) { my $pp = Protparam->new(seq=>$seq->seq); print "ID : ", $seq->display_id," ", "Amino acid number : ",$pp->amino_acid_number()," ", "Number of negative amino acids : ",$pp->num_neg()," ", "Number of positive amino acids : ",$pp->num_pos()," ", "Molecular weight : ",$pp->molecular_weight()," ", "Theoretical pI : ",$pp->theoretical_pI()," ", "Total number of atoms : ", $pp->total_atoms()," ", "Number of carbon atoms : ",$pp->num_carbon()," ", "Number of hydrogen atoms : ",$pp->num_hydrogen()," ", "Number of nitrogen atoms : ",$pp->num_nitro()," ", "Number of oxygen atoms : ",$pp->num_oxygen()," ", "Number of sulphur atoms : ",$pp->num_sulphur()," ", "Half life : ", $pp->half_life()," ", "Instability Index : ", $pp->instability_index()," ", "Stability class : ", $pp->stability()," ", "Aliphatic_index : ",$pp->aliphatic_index()," ", "Gravy : ", $pp->gravy()," ", "Composition of A : ", $pp->AA_comp('A')," ", "Composition of R : ", $pp->AA_comp('R')," ", "Composition of N : ", $pp->AA_comp('N')," ", "Composition of D : ", $pp->AA_comp('D')," ", "Composition of C : ", $pp->AA_comp('C')," ", "Composition of Q : ", $pp->AA_comp('Q')," ", "Composition of E : ", $pp->AA_comp('E')," ", "Composition of G : ", $pp->AA_comp('G')," ", "Composition of H : ", $pp->AA_comp('H')," ", "Composition of I : ", $pp->AA_comp('I')," ", "Composition of L : ", $pp->AA_comp('L')," ", "Composition of K : ", $pp->AA_comp('K')," ", "Composition of M : ", $pp->AA_comp('M')," ", "Composition of F : ", $pp->AA_comp('F')," ", "Composition of P : ", $pp->AA_comp('P')," ", "Composition of S : ", $pp->AA_comp('S')," ", "Composition of T : ", $pp->AA_comp('T')," ", "Composition of W : ", $pp->AA_comp('W')," ", "Composition of Y : ", $pp->AA_comp('Y')," ", "Composition of V : ", $pp->AA_comp('V')," ", "Composition of B : ", $pp->AA_comp('B')," ", "Composition of Z : ", $pp->AA_comp('Z')," ", "Composition of X : ", $pp->AA_comp('X')," "; } DESCRIPTION
This module takes an amino acid sequence and submits it to the Protparam program at www.expasy.org/cgi-bin/protparam. Many properties of the submitted sequence are returned. AUTHOR
Richard Dobson, r.j.dobson at qmul dot ac dot uk new Title : new Usage : $pp = Protparam->new(seq=>$seq->seq); Function : Creates a new Protparam object Returns : A Protparam object Args : A sequence num_neg Title : num_neg Usage : $pp->num_neg() Function : Retrieves the number of negative amino acids in a sequence Returns : Returns the number of negative amino acids in a sequence Args : none num_pos Title : num_pos Usage : $pp->num_pos() Function : Retrieves the number of positive amino acids in a sequence Returns : Returns the number of positive amino acids in a sequence Args : none amino_acid_number Title : amino_acid_number Usage : $pp->amino_acid_number() Function : Retrieves the number of amino acids within a sequence Returns : Returns the number of amino acids within a sequence Args : none total_atoms Title : total_atoms Usage : $pp->total_atoms() Function : Retrieves the total number of atoms within a sequence Returns : Returns the total number of atoms within a sequence Args : none molecular_weight Title : molecular_weight Usage : $pp->molecular_weight() Function : Retrieves the molecular weight of a sequence Returns : Returns the molecular weight of a sequence Args : none theoretical_pI Title : theoretical_pI Usage : $pp->theoretical_pI() Function : Retrieve the theoretical pI for a sequence Returns : Return the theoretical pI for a sequence Args : none num_carbon Title : num_carbon Usage : $pp->num_carbon() Function : Retrieves the number of carbon atoms in a sequence Returns : Returns the number of carbon atoms in a sequence Args : none num_hydrogen Title : num_hydrogen Usage : $pp->num_hydrogen Function : Retrieves the number of hydrogen atoms in a sequence Returns : Returns the number of hydrogen atoms in a sequence Args : none num_nitro Title : num_nitro Usage : $pp->num_nitro Function : Retrieves the number of nitrogen atoms in a sequence Returns : Returns the number of nitrogen atoms in a sequence Args : none num_oxygen Title : num_oxygen Usage : $pp->num_oxygen() Function : Retrieves the number of oxygen atoms in a sequence Returns : Returns the number of oxygen atoms in a sequence Args : none num_sulphur Title : num_sulphur Usage : $pp->num_sulphur() Function : Retrieves the number of sulphur atoms in a sequence Returns : Returns the number of sulphur atoms in a sequence Args : none half_life Title : half_life Usage : $pp->half_life() Function : Retrieves the half life of a sequence Returns : Returns the half life of a sequence Args : none instability_index Title : instability_index Usage : $pp->instability_index() Function : Retrieves the instability index of a sequence Returns : Returns the instability index of a sequence Args : none stability Title : stability Usage : $pp->stability() Function : Calculates whether the sequence is stable or unstable Returns : 'stable' or 'unstable' Args : none aliphatic_index Title : aliphatic_index Usage : $pp->aliphatic_index() Function : Retrieves the aliphatic index of the sequence Returns : Returns the aliphatic index of the sequence Args : none gravy Title : gravy Usage : $pp->gravy() Function : Retrieves the grand average of hydropathicity (GRAVY) of a sequence Returns : Returns the grand average of hydropathicity (GRAVY) of a sequence Args : none AA_comp Title : AA_comp Usage : $pp->AA_comp('P') Function : Retrieves the percentage composition of a given amino acid for a sequence Returns : Returns the percentage composition of a given amino acid for a sequence Args : A single letter amino acid code eg A, R, G, P etc perl v5.14.2 2012-03-02 Bio::Tools::Protparam(3pm)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy