I want to count the number of occurence of perticular word from one text file.
Please tell me "less" command is work in ksh or not. If it is not working then instead of that which command will work. :confused: (40 Replies)
i have a file called file1
cat file1
i am namish
namish lives in India
India and namish both are good.
I want to delete all the occurences of namish in one shot,if i do it with sed i guess all the lines will be deleted containing the pattern.Suggest me any idea without AWK.
Thanks... (6 Replies)
In a file I have to count a particular word. like i need apache how many times.
I tried this
$ tr "\011" "\012\012"<foo1 | tr -cd "" |sort\uniq -c
but I got result like this
32 apache
18 dns
12 doctor
Please sugest me (4 Replies)
I have an array as follows:
Space: ABC
Name: def
Age: 22
Type: new
Name: fgh
Age: 34
Type: old
Space: XYZ
Name: pqr
Age: 44
Type: new
:
:
How can I separate the array with elements starting from Space:ABC until Space: XYZ & put them in a different array & so on... (4 Replies)
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)
Hello,
I have a programming assignment to count number of occurrences of hours in particular file. Below is the code:
fname = raw_input("Enter file name: ")
if len(fname) < 1 : fname = "mbox-short.txt"
largest = None
fh = open(fname)
counts = dict()
test = list()
for line in fh:
... (2 Replies)
Discussion started by: infinitydon
2 Replies
LEARN ABOUT SUSE
htmerge
htmerge(1) General Commands Manual htmerge(1)NAME
htmerge - create document index and word database for the ht://Dig search engine
SYNOPSIS
htmerge [options]
DESCRIPTION
Htmerge is used to create a document index and word database from the files that were created by htdig. These databases are then used by
htsearch to perform the actual searched.
OPTIONS -a Use alternate work files. Tells htdig to append .work to database files, causing a second copy of the database to be built. This
allows the original files to be used by htsearch during the indexing run.
-c configfile
Use the specified configfile instead of the default.
-d Prevent the document index from being created.
-s Print statistics about the document and word databases after htmerge has finished.
-v Run in verbose mode. This will provide some hints as to the progress of the merge. This can be useful when running htmerge interac-
tively since some parts (especially the word database creation) can take a very long time.
-w Prevent the word database from being created.
ENVIRONMENT
TMPDIR In addition to the command line options, the environment variable TMPDIR will be used to designate the directory where intermediate
files are stored during the sorting process.
FILES
/etc/htdig/htdig.conf
The default configuration file.
SEE ALSO
Please refer to the HTML pages (in the htdig-doc package) /usr/share/doc/htdig-doc/html/index.html and the manual pages htdig(1) and
htsearch(1) for a detailed description of ht://Dig and its commands.
AUTHOR
This manual page was written by Christian Schwarz, modified by Stijn de Bekker, based on the HTML documentation of ht://Dig.
21 July 1997 htmerge(1)