06-29-2015
I tagged it as solved. Is that all its required??
This User Gave Thanks to mo12 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to run the following code from a script file but it complains that syntax of (both instances of) grep is wrong.
When I copy and paste it to the terminal, it is OK. Any idea what the problem might be?
set i = `grep -c #define flags.h`
while ($i>20)
@ i--
my func (`cat... (4 Replies)
Discussion started by: barisgultekin
4 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. Shell Programming and Scripting
#!/bin/sh
something(){
echo "Inside something"
echo $1 $2
}
val=$(something "Hello " "world")
Output expected:
Inside somethingHello world
But it's not echoing. (4 Replies)
Discussion started by: cola
4 Replies
4. Shell Programming and Scripting
Hi All
I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh
URL="www.google.com"
VBURL="10.5.2.211"
echo "Setting route for $URL for GPRS"
URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1`
echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
Something strange going on with a shell script I'm writing. It's trying to write a list of files that it finds in a given directory to another file. But I also have a skip list so matching files that are in that skip list should be, well uhm, skipped :)
Here's the code of my... (2 Replies)
Discussion started by: StijnV
2 Replies
6. Shell Programming and Scripting
Hi Every body,
I would need a shell script program to login as different user and perform some copy commands in the script.
example: Supppose ora_toms is the active user
ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands
... (9 Replies)
Discussion started by: ujjwal27
9 Replies
7. Red Hat
I've created a Perl daemon that needs to send an email when an error/shutdown occurs. I use the Perl Email::Valid module and that uses sendmail. When I run the script as a regular user, the email is sent with no issues. When I run the script as the root user, I get the following message in... (1 Reply)
Discussion started by: OldManEd
1 Replies
8. Red Hat
Hi, I am root user. I need to add more groups to the account. I usse the below command but no apparent result
# id
uid=0(root) gid=0(root) groups=0(root)
# usermod -a -G 302,301,303 root
# id
uid=0(root) gid=0(root) groups=0(root)
#
What can be the reason? (6 Replies)
Discussion started by: BearCheese
6 Replies
9. Shell Programming and Scripting
Linux version : Oracle Linux 6.4
Shell : Bash
The following script will be run as root. During the execution, it should switch to oracle user and execute few commands.
After googling and searching within unix.com , I came up with the following syntax
## Enclosing all commands in double... (7 Replies)
Discussion started by: John K
7 Replies
10. Shell Programming and Scripting
Hi,
I need to switch from local user to root user in a shell script.
I need to make it automated so that it doesn't prompt for the root password.
I heard the su command will do that work but it prompt for the password.
and also can someone tell me whether su command spawns a new shell or... (1 Reply)
Discussion started by: Little
1 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)