01-27-2015
Thanks guys. I finally managed to write my own code.
Here it is. But I would still love to re-use the code with you permission.
@senhia83 @ongoto @Don Cragun @derekludwig Corona688
Thank you all guys !
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: rinku
40 Replies
2. UNIX for Dummies Questions & Answers
Greetings,
I need to search and count all the occurences of a word in all the files in a directory.
Any suggestions greatly appreciated.
Thanks (1 Reply)
Discussion started by: skoppana
1 Replies
3. UNIX for Advanced & Expert Users
Suppose i have data like :-
1,2,3,4,5
a,b,c
x,y,z,t
I want to count the occurence of , (comma) in every line.
Waiting for a solution.:) (1 Reply)
Discussion started by: sumit207
1 Replies
4. UNIX for Dummies Questions & Answers
Suppose i have data like :-
1,2,3,4,5
a,b,c
x,y,z,t
I want to count the occurence of , (comma) in every line.
Waiting for a solution. (5 Replies)
Discussion started by: sumit207
5 Replies
5. Programming
Is this x86? I encountered this instruction and can't seem to find any info on what it does anywhere. Any ideas? This is how it appears:
seg es (4 Replies)
Discussion started by: stevenswj
4 Replies
6. Shell Programming and Scripting
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?
Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
Discussion started by: butterfly20
2 Replies
7. Shell Programming and Scripting
I have the following string:
31-01-2012, 09:42:37;OK;94727132638;"Mozilla/5.0 (Linux; U; Android 2.2.1)";3G;WAP;I need a script which is counting the occurrence of semicolons ( ; ) but exclude the ones from the quotation marks.
In the string given as example there are 8 semicolons but the script... (3 Replies)
Discussion started by: calinlicj
3 Replies
8. UNIX for Dummies Questions & Answers
Hi there,
how can i print the first pattern occurrence in a .log file?
I want to print the filename of the first 17262?
I tried but all I can do is print all the lines with the number 17262?
I tried using awk and sed but nothing!:wall:
I just want filename!
Here´s an example:
17259... (3 Replies)
Discussion started by: BMatter
3 Replies
9. Shell Programming and Scripting
I have a file
# cat asasas
AAAAAA
11
22
33
44
BBBBB
NILNILNIL
AAAAAA
22
33
44
55
66
77
88
BBBBB
NILNILNIL (2 Replies)
Discussion started by: anil510
2 Replies
10. Programming
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 DEBIAN
m17nobject
Managed Object(3m17n) The m17n Library Managed Object(3m17n)
NAME
Managed_Object - Objects managed by the reference count.
Data Structures
struct M17NObjectHead
The first member of a managed object.
Functions
void * m17n_object (int size, void(*freer)(void *))
Allocate a managed object.
int m17n_object_ref (void *object)
Increment the reference count of a managed object.
int m17n_object_unref (void *object)
Decrement the reference count of a managed object.
Detailed Description
Objects managed by the reference count.
Managed objects are objects managed by the reference count.
There are some types of m17n objects that are managed by their reference count. Those objects are called managed objects. When created, the
reference count of a managed object is initialized to one. The m17n_object_ref() function increments the reference count of a managed
object by one, and the m17n_object_unref() function decrements by one. A managed object is automatically freed when its reference count
becomes zero.
A property whose key is a managing key can have only a managed object as its value. Some functions, for instance msymbol_put() and
mplist_put(), pay special attention to such a property.
In addition to the predefined managed object types, users can define their own managed object types. See the documentation of the
m17n_object() for more details.
Author
Generated automatically by Doxygen for The m17n Library from the source code.
Data Structure Documentation
M17NObjectHead
FIELD DOCUMENTATION:
void* M17NObjectHead::filler[2]
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 Managed Object(3m17n)