How to search a word in a file?

How to search a particular word in a file.
in my file contains lacks of rows.

you can use
grep
sed
awk

go through man pages..

Hello,

Here are some small examples for searching a word as follows.

 
 
$ cat test1211
ASD_QAW 12 A_@
AE_AQ 21 PA_123
ASDA_@ 23 ADA_AS
 
 
Using Grep:
 
$ cat test1211 | grep "ASD*"
ASD_QAW 12 A_@
ASDA_@ 23 ADA_AS
$

 
 
Using awk:
 
$ awk '/ASD*/' test1211
ASD_QAW 12 A_@
ASDA_@ 23 ADA_AS
$

 
 

Also you can use vi editor to open a file and seacrn a word in it.

Thanks,
R. Singh