Search Results

Search: Posts Made By: smacherla
3,947
Posted By smacherla
Thanks.It is working fine. Output: 7...
Thanks.It is working fine.

Output:

7 of
5 is
4 the
4 have
4 as
4 and
4 I
3 that
3 in
2 to
3,947
Posted By smacherla
Display most top 10 occurring words along with number of ocurences of word inthe text
I need Display the most top 10 occurring words along with the number of occurences of those words in the given text.

Sample text as below:


"The Travails of Single South Indian men of...
Forum: HP-UX 05-23-2008
8,104
Posted By smacherla
Output: 12 56 13 65 15 79 18 84
Output:

12 56
13 65
15 79
18 84
Forum: HP-UX 05-23-2008
8,104
Posted By smacherla
The below is working now.Thanks.....
awk '{ cnt[$1]++; tot[$1]+=$2 } \
END{ for (i in tot) { print i, tot[i]/cnt[i]}} ' file
Forum: HP-UX 05-23-2008
8,104
Posted By smacherla
I am getting ouput as follows: 12 0 13 0 ...
I am getting ouput as follows:

12 0
13 0
15 0
18 0


But I want the output as follows:

12 avg(Rno 12)
13 avg(Rno 13)
15 avg(Rno 15)
18 avg(Rno 18)
Forum: HP-UX 05-22-2008
8,104
Posted By smacherla
calculate average of multiple line data
I have a question as below and i need to write a shell or perl script for this query:My Input file looks like below

RNo Marks

12 50
15 70
18 ...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 12:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy