Re: problem with the script in counting

2008-04-05 Thread ken Foskey
On Sun, 2008-04-06 at 05:39 +0530, pradeep reddy wrote: > Can this impletemented in shell script alsso? Why do you ask this in a perl list? look at `uniq -c`. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

Re: problem with the script in counting

2008-04-05 Thread pradeep reddy
Hi, Thanks for the reply. Can this impletemented in shell script alsso? - Original Message From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Saturday, 5 April, 2008 3:01:41 PM Subject: Re: problem with the script in counting pradeep reddy wrote: > I

Re: problem with the script in counting

2008-04-05 Thread John W. Krahn
pradeep reddy wrote: Hi, Hello, I have a script which greps for a word in a file contains records. I grabbed a particular column & sent the colomn values to a file. I need to find each column value, the times it appeared in the file. My script is: grep sceneority | cut -f 6

Re: problem with the script in counting

2008-04-05 Thread Gunnar Hjalmarsson
pradeep reddy wrote: I am stuck at how to find the occurance of column values in "swi" file. The file has following column values: 123 324 123 123 435 435 The output should be 123 is 3 times 324 is 1 time 435 is 2 times Use a hash. open my $fh, '<', 'swi' or die $!; my %cnt;

problem with the script in counting

2008-04-05 Thread pradeep reddy
Hi, I have a script which greps for a word in a file contains records.. I grabbed a particular column & sent the colomn values to a file. I need to find each column value, the times it appeared in the file. My script is: grep sceneority | cut -f 6 >> swi I am stuck at how to fi

problem with the script in counting

2008-04-05 Thread pradeep reddy
Hi, I have a script which greps for a word in a file contains records.. I grabbed a particular column & sent the colomn values to a file. I need to find each column value, the times it appeared in the file. My script is: grep sceneority | cut -f 6 >> swi I am stuck at how to fi

problem with the script in counting

2008-04-05 Thread pradeep reddy
Hi, I have a script which greps for a word in a file contains records. I grabbed a particular column & sent the colomn values to a file. I need to find each column value, the times it appeared in the file. My script is: grep sceneority | cut -f 6 >> swi I am stuck at how to fin