Hi,
Inputfile.log
TDR 30 /data/data2/log1
TDRM 60 /data/data2/log2
# This command will match both lines
$ grep ^TDR Inputfile.log
# This command will match lines with TDR word appear anywhere in the text (but not TDRM)
$ egrep -w TDR Inputfile.log
How can I just match TDR that appears only at the beginning of the line?
Cheers :)
lois