11-21-2002
What are you writing these scripts in? What shell?
(What OS too)
Post anything you may have started and the problems you are having.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Folks !!!!!!!!!!!!!!!!!!!
My Requirement is.............
i have a input file:
501,501.chan
502,502.anand
503,503.biji
504,504.raja
505,505.chan
506,506.anand
507,507.chan
and my o/p should be
chan->3
i.e. the word which occurs maximum number of times in a file should be... (5 Replies)
Discussion started by: aajan
5 Replies
2. Shell Programming and Scripting
I've been looking on the internet, and haven't found anything simple enough to use in my code. All I want to do is count how many times "-" occurs in a string of characters (as a package name). It seems it should be very simple, and shouldn't require more than one line to accomplish.
And this is... (2 Replies)
Discussion started by: Shingoshi
2 Replies
3. Shell Programming and Scripting
guys,
I am new shelll scripting..
this a question on passt exam paper, I was trying to solve it , I can not.
the question is as follow?
a. Write a shell script to count the number of accounts which belong to particular primary group in a standard UNIX system which uses local... (1 Reply)
Discussion started by: gurmad
1 Replies
4. Shell Programming and Scripting
Hi All,
I wanted to know if there is a shell command to print a word n number of times
The Input File is :
Cat 4
Bat 3
Zall 1
Kite 2
Output File required is :
Cat
Cat
Cat
Cat
Bat
Bat
Bat
Zall
Kite (4 Replies)
Discussion started by: sam_2921
4 Replies
5. Shell Programming and Scripting
ile1
Beckham
Ronaldo
file2
Beckham Beckham_human
Ronaldo Ronaldo_spain
Ronaldo Ronaldo_brazil
Beckham Beckham_manch
Zidane Zidane_Fran
Rooney Rooney_Eng
Output shud be (1 Reply)
Discussion started by: cdfd123
1 Replies
6. Shell Programming and Scripting
Hi Experts,
I want to know the count of specific word in a file. I have almost 600+ files.
So I want to loop thru each file and get the count of the specific word.
Please help me on achieving this...
Many thanks (2 Replies)
Discussion started by: elamurugu
2 Replies
7. UNIX for Dummies Questions & Answers
I'm trying to count the number of times each word in the file exist
for example if the file has:
today I have a lot to write, but I will not go for it. The main thing is that today I am looking for a way to get each word in this file with a word count after it specifying that this word has... (4 Replies)
Discussion started by: shnkool
4 Replies
8. UNIX for Dummies Questions & Answers
Hello Is there a way to calculate how many times a particular symbol appeared in a string before a particular word.
Desktop/Myfiles/pet/dog/puppy
So, I want to count number of occurence of"/" in this directory before the word dog lets say.
Cheers,
Bob (3 Replies)
Discussion started by: FUTURE_EINSTEIN
3 Replies
9. UNIX for Dummies Questions & Answers
Hi
Please can you help how do I count the number of specific characters or words that appear in a file? (8 Replies)
Discussion started by: fretagi
8 Replies
10. Shell Programming and Scripting
can i get a simple script for , Count same word which has come many times in single lines & pars
Eg file would be ==
"Thanks heman thanks thanks
Thanks heman
thanks man"
So resullt should be
Thanks = 5
heman=2
man = 1
thanks in advance :)
Please use code tags for code and... (1 Reply)
Discussion started by: heman96
1 Replies
LEARN ABOUT CENTOS
font::ttf::post
Font::TTF::Post(3) User Contributed Perl Documentation Font::TTF::Post(3)
NAME
Font::TTF::Post - Holds the Postscript names for each glyph
DESCRIPTION
Holds the postscript names for glyphs. Note that they are not held as an array, but as indexes into two lists. The first list is the
standard Postscript name list defined by the TrueType standard. The second comes from the font directly.
Looking up a glyph from a Postscript name or a name from a glyph number is achieved through methods rather than variable lookup.
This class handles PostScript table types of 1, 2, 2.5 & 3, but not version 4. Support for version 2.5 is as per Apple spec rather than
MS.
The way to look up Postscript names or glyphs is:
$pname = $f->{'post'}{'VAL'}[$gnum];
$gnum = $f->{'post'}{'STRINGS'}{$pname};
INSTANCE VARIABLES
Due to different systems having different limitations, there are various class variables available to control what post table types can be
written.
$Font::TTF::Post::no25
If set tells Font::TTF::Post::out to use table type 2 instead of 2.5 in case apps cannot handle version 2.5.
VAL Contains an array indexed by glyph number of Postscript names. This is used when writing out a font.
STRINGS
An associative array of Postscript names mapping to the highest glyph with that name. These may not be in sync with VAL.
In addition there are the standard introductory variables defined in the standard:
FormatType
italicAngle
underlinePosition
underlineThickness
isFixedPitch
minMemType42
maxMemType42
minMemType1
maxMemType1
METHODS
$t->read
Reads the Postscript table into memory from disk
$t->out($fh)
Writes out a new Postscript name table from memory or copies from disk
$t->XML_element($context, $depth, $key, $val)
Outputs the names as one block of XML
BUGS
o No support for type 4 tables
AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing.
perl v5.16.3 2012-02-23 Font::TTF::Post(3)