Search Results

Search: Posts Made By: sheela
8,407
Posted By sheela
I am getting like typeset : not found ...
I am getting like
typeset : not found
arithmetic expression: expecting primary: "}+1"

---------- Post updated at 12:31 AM ---------- Previous update was at 12:30 AM ----------

Sorry i am...
8,407
Posted By sheela
For the same file if i use the below code ...
For the same file if i use the below code

#!/bin/sh
typeset -i mcnt=0
mword='Another'
for meach in `cat ss.txt`
do
if ["${meach}" = "${mword}"]; then
mcnt=${mcnt}+1
fi
done
echo 'Total...
8,407
Posted By sheela
Thank you I am getting the answer... Thank u once...
Thank you I am getting the answer... Thank u once again..

---------- Post updated at 01:14 AM ---------- Previous update was at 01:01 AM ----------

what is the explanation of line

read f1...
8,407
Posted By sheela
Can u say me how could i change it..
Can u say me how could i change it..
8,407
Posted By sheela
My file is ss.txt Another instance started ...
My file is ss.txt

Another instance started
Another instance started
Another instance started
Another instance started
No instance started
No instance started
No instance started
No...
8,407
Posted By sheela
grep -c Another filename grep -i "Another"...
grep -c Another filename

grep -i "Another" filename | wc -l

grep -cw 'Another' filename

grep -c Another filename | wc -w

tr -cs 'A-Za-z' '\n' < filename | grep -c "Another"

These are...
8,407
Posted By sheela
Executing the commands i get the correct line...
Executing the commands i get the correct line count if i want to display all the lines that contain the word Another what command can i use..
8,407
Posted By sheela
Thanks for ur advice:o
Thanks for ur advice:o
8,407
Posted By sheela
Hai alister, can u please say me the exact...
Hai alister,
can u please say me the exact command that i can use to find the particular word 'another' from 17000 lines from a log file or text file
8,407
Posted By sheela
actually its centos i am working with... i am new...
actually its centos i am working with... i am new to it but i need to find the occurence of the word "another" from 16000 lines in a log file
8,407
Posted By sheela
thanks all i will try and reply if i have any...
thanks all i will try and reply if i have any doubts
8,407
Posted By sheela
this is shell script or a simple command to find...
this is shell script or a simple command to find the occurence
8,407
Posted By sheela
i have one doubt... i have 17000 lines in which...
i have one doubt...
i have 17000 lines in which i have to find the number of occurence of particular word 'another' is it possible to find with the command specified by u..

---------- Post...
8,407
Posted By sheela
i have one doubt... i have 17000 lines in which...
i have one doubt...
i have 17000 lines in which i have to find the number of occurence of particular word 'another' is it possible to find with the command specified by u..
8,407
Posted By sheela
i cant understand u can u explain me..
i cant understand u can u explain me..
8,407
Posted By sheela
How to find the number of occurence of particular word from a text file?
example:

i have the following text file...
i am very tired.
i am busy
i am hungry

i have to find the number of occurence of a particular word 'am' from the text file.. can any one give the...
Showing results 1 to 16 of 16

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