LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   extracting line number (https://www.linuxquestions.org/questions/linux-newbie-8/extracting-line-number-375356/)

s_shenbaga 10-21-2005 05:11 AM

extracting line number
 
hi,

i have a string in a variable. with that string i have to grep the line containg that string in other file and i have to find the line number of that particular line.

i have found that particular line but have no idea to get the line number.

plz help me.

deoren 10-21-2005 05:52 AM

Code:

man grep


All times are GMT -5. The time now is 12:32 AM.