01-28-2009
"rev" reverse the order of characters line-wise
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to append string "Hi" to the beginning of the lines containing some specific string. How can I achieve that?
Please help.
Malay (1 Reply)
Discussion started by: malaymaru
1 Replies
2. Shell Programming and Scripting
Hello!
I need to delete one line in a file which matches one very precise instance of a string only. When searching the forum I unfortunately only found a solution which would delete each line on which a particular string occurs.
Let's assume I have a file composed of thousands of lines... (4 Replies)
Discussion started by: Black Sun
4 Replies
3. Shell Programming and Scripting
Hi
I'm trying to search for the last instance of the word 'cache' in a HTML file that I have downloaded from YouTube.
I'm using the following syntax, but an error is thrown when I try it.
grep -f "cache"
Also I wish to append the above grep command to the below so that the search for cache... (3 Replies)
Discussion started by: colmbell
3 Replies
4. Shell Programming and Scripting
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies
5. Shell Programming and Scripting
I need to be able to search for a beginning line header, then use grep or something else to get the very next instance of a particular string, which will ALWAYS be in "Line5". What I have is some data that appears like this:
Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line1
Line2
...... (4 Replies)
Discussion started by: Akilleez
4 Replies
6. Shell Programming and Scripting
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Discussion started by: suryanarayana
1 Replies
7. Shell Programming and Scripting
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Discussion started by: suryanarayana
5 Replies
8. Shell Programming and Scripting
Hi,
I want to do a sed (linux) or the alternative in PHP to insert a backslash in front of every occurrence of every forward slash
ex.
/archive/data/stanley
-->
\/archive\/data\/stanley
I appreciate it! (4 Replies)
Discussion started by: deadyetagain
4 Replies
9. Shell Programming and Scripting
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies
10. UNIX for Beginners Questions & Answers
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies
LEARN ABOUT CENTOS
cntlist
CNTLIST(5) WordNettm File Formats CNTLIST(5)
NAME
cntlist - file listing number of times each tagged sense occurs in a semantic concordance, sorted most to least frequently tagged
cntlist.rev - file listing number of times each tagged sense occurs in a semantic concordance, sorted by sense key
DESCRIPTION
A cntlist file for a semantic concordance lists the number of times each semantically tagged sense occurs in the concordance and its sense
number in the WordNet database. Each line in the file corresponds to a sense in the WordNet database to which at least one semantic tag
points. Only senses that are tagged in a concordance are in the concordance's cntlist file.
WordNet Database cntlist File
In the WordNet database, words are assigned sense numbers based on frequency of use in semantically tagged corpora. The cntlist file used
by grind(1) to build the WordNet database and assign the sense numbers is a union of the cntlist files from the various semantic concor-
dances that were formerly released by Princeton University. This combined cntlist file is provided with the WordNet package and is found
in the WNSEARCHDIR directory.
The cntlist.rev file is used at run-time by the WordNet library code and browser interfaces to print in the output display the number of
times each sense has been tagged.
File Format
Each line in a cntlist file contains information for one sense. The file is ordered from most to least frequently tagged sense. The
fields are separated by one space, and each line is terminated with a newline character. Senses having the same tag_cnt value are listed
in reverse alphabetical order of the lemma field of the sense_key.
Each line in cntlist is of the form:
tag_cnt sense_key sense_number
where tag_cnt is the decimal number of times the sense is tagged in the corresponding semantic concordance. sense_key is a WordNet sense
encoding and sense_number is a WordNet sense number as described in
The cntlist.rev file contains the same fields described above, in the following order:
sense_key sense_number tag_cnt
NOTES
Princeton no longer maintains or releases the Semantic Concordance files. The cntlist file used to order the senses in WordNet 3.0 was
generated from the Semantic Concordance files at the point that they were last updated in 2001. In general, the order of senses presented
usually reflects what the user would expect, however sense ordering is now less reliable than in prior releases and should not be construed
as an accurate indicator of frequency of use.
ENVIRONMENT VARIABLES (UNIX)
WNHOME Base directory for WordNet. Default is /usr/local/WordNet-3.0.
WNSEARCHDIR Directory in which the WordNet database has been installed. Default is WNHOME/dict.
REGISTRY (WINDOWS)
HKEY_LOCAL_MACHINESOFTWAREWordNet3.0WNHome
Base directory for WordNet. Default is C:Program FilesWordNet3.0.
HKEY_CURRENT_USERSOFTWAREWordNet3.0wnres
User's default browser options.
FILES
cntlist, cntlist.rev
file of combined semantic concordance cntlist files. Used to assign sense numbers in WordNet database
SEE ALSO
grind(1), wnintro(5), senseidx(5).
WordNet 3.0 Dec 2006 CNTLIST(5)