![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find a particular word in perl | Harikrishna | Shell Programming and Scripting | 2 | 04-10-2008 12:35 AM |
| Find a word and delete the line | gsusarla | UNIX for Dummies Questions & Answers | 1 | 04-02-2008 11:45 AM |
| find a word in a file, and change a word beneath it ?? | vikas027 | Shell Programming and Scripting | 2 | 02-13-2008 01:23 PM |
| sed find word ending with | eltinator | Shell Programming and Scripting | 2 | 08-22-2007 03:26 PM |
| find word and relace VI | singh85 | Linux | 1 | 01-30-2004 09:44 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
How can find exactly word in Unix?
How can find exactly word in Unix?
Hi all? I have on fine it contains data like: Recalculation Dates started Performance History Recalc Scheduling started Recalculation started New Recalculation started But I want output like: Recalculation started(3rd line) So , please help on this. I was tried through grep command. Like: grep "Recalculation started" avg_configfile Out put: Recalculation started|1476| After-tax Recalculation started|17| |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
start of line?
If the pattern that you are trying to match starts at the beginning of the line, then
Code:
grep ^'Recalculation started' avg_configfile |
|
#3
|
||||
|
||||
|
Code:
nl <file-name> | grep "Recalculation started" |
|
#4
|
|||
|
|||
|
Thanks
I t's working......
|
|||
| Google The UNIX and Linux Forums |