Thanks!!!!!
Now I have one more question.
Suppose that I have a file named student.txt
Code:
$ cat student.txt
180 : Tridip Neogi : 234
190 : John Karl : 424
160 : kartugi Pagi : 334
The first field is the roll no, second the name and in the last is the marks obtained by them. If suppose I want to search for a specific roll no. and then display the whole line----How shall I do that.
Look I just can't use grep because the roll no and the marks may be same. I have to cut it vertically. and then how shall I print the matching line.