Sponsored Content
Top Forums Shell Programming and Scripting I need help with a basic script Post 302150240 by EECSDAVE on Monday 10th of December 2007 05:34:24 PM
Old 12-10-2007
I need help with a basic script

a) Total number of words in the file.

b) Total number of different words in the file.

How can I use the translate and/or unique commands to accomplish this

Last edited by EECSDAVE; 12-10-2007 at 06:58 PM.. Reason: To solicit a response
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help with basic unix script

What I am supposed to do is creat a menu with the following Find a song Find a album Sort by artist Delete a song Add a new song Quit Now the file with the song information is database Here is what I have so far #!/bin/bash #================================================= #Script Name:... (1 Reply)
Discussion started by: stp0052
1 Replies

2. Shell Programming and Scripting

Basic script?

All, I have a list of over 400 users that need certain directories created. These will be created in /users/$username on a system and I need a directory called chess under these directories that I create. Instead of me manually adding each one (mkdir /users/user1, mkdir /users/user1/chess)... (1 Reply)
Discussion started by: kjbaumann
1 Replies

3. Shell Programming and Scripting

create a basic script

Hi everybody :( :confused: :D, I need someone to help me! I have a file with 4 colunms and I would like to transform only the 4th colunm by multiplying this by a constant value (i.e 0.3047). I'm a new one using/creating basic scripts and I'm using linux redhat. The file has the following... (1 Reply)
Discussion started by: Estanislau
1 Replies

4. Shell Programming and Scripting

create a basic script

Hi everybody :( :confused: :D, I need someone to help me! I have a file with 4 colunms and I would like to transform only the 4th colunm by multiplying this by a constant value (i.e 0.3047). I'm a new one using/creating basic scripts and I'm using linux redhat. The file has the following... (1 Reply)
Discussion started by: Estanislau
1 Replies

5. Shell Programming and Scripting

Basic script question

I'm trying to approach a problem but all I'm coming up with are complex ways to manipulate the data. But still not getting the desired outcome. directory of files.... file-100-foo file-100-man file-100-chu Need to copy the files and increment the number in the file name ... (4 Replies)
Discussion started by: suphawk
4 Replies

6. Shell Programming and Scripting

Basic shell script help

Im trying to make a script that simply adds a word to the last available line in a txt file without overwriting any previous lines. Ive googled this and there are great examples but no one explain what each function does, and i dont entirely understand how it works. Basically Im looking for... (7 Replies)
Discussion started by: kylecn
7 Replies

7. UNIX for Dummies Questions & Answers

Help with basic script - not working..

Here is the script I wrote... Pls. help. #!/bin/ksh for SERVER in NEWSNYD403P NEWSNYD404P SNEWSNYD601P SNEWSNYD602P SNEWSDNY603P SNEWSNYD604P do /usr/bin/scp "/home/sam/bash.tar root@$SERVER":/tmp done Error msg I get: ./scp_script.sh: syntax error at line 3:... (2 Replies)
Discussion started by: samnyc
2 Replies

8. Shell Programming and Scripting

Need a little help with my first shell script. Basic image resize script...

Hey everyone, just now joined because I didn't want to go onto Ubuntu forums and start asking about how to write shell scripts. Seems like this is a pretty active forum for exactly what I need. I'm trying to modify a shell script I found online, the end goal is to have it find all files in the... (9 Replies)
Discussion started by: mozzles
9 Replies
WNSTATS(7WN)							     WordNettm							      WNSTATS(7WN)

NAME
wnstats - WordNet 3.0 database statistics DESCRIPTION
Number of words, synsets, and senses +----------+---------+---------+------------------+ | POS | Unique | Synsets | Total | | | Strings | | Word-Sense Pairs | +----------+---------+---------+------------------+ |Noun | 117798 | 82115 | 146312 | |Verb | 11529 | 13767 | 25047 | |Adjective | 21479 | 18156 | 30002 | |Adverb | 4481 | 3621 | 5580 | +----------+---------+---------+------------------+ |Totals | 155287 | 120982 | 206941 | +----------+---------+---------+------------------+ Polysemy information +----------+------------------+------------+------------+ | POS | Monosemous | Polysemous | Polysemous | | | Words and Senses | Words | Senses | +----------+------------------+------------+------------+ |Noun | 101863 | 15935 | 44449 | |Verb | 6277 | 5252 | 18770 | |Adjective | 16503 | 4976 | 14399 | |Adverb | 3748 | 733 | 1832 | +----------+------------------+------------+------------+ |Totals | 128391 | 26896 | 79450 | +----------+------------------+------------+------------+ +----------+----------------------------+----------------------------+ | POS | Average Polysemy | Average Polysemy | | | Including Monosemous Words | Excluding Monosemous Words | +----------+----------------------------+----------------------------+ |Noun | 1.24 | 2.79 | |Verb | 2.17 | 3.57 | |Adjective | 1.40 | 2.71 | |Adverb | 1.25 | 2.50 | +----------+----------------------------+----------------------------+ NOTES
Statistics for all types of adjectives and adjective satellites are combined. The total of all unique noun, verb, adjective, and adverb strings is actually 147278. However, many strings are unique within a syntactic category, but are in more than one syntactic category. The figures in the table represent the unique strings in each syntactic category. WordNet 3.0 Dec 2006 WNSTATS(7WN)
All times are GMT -4. The time now is 11:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy