Hi everyone I've two files..
The contents of file1 are as shown below
4
5
12
13
36
37
45
46
47
The contents of file2 are as shown below
21 hello
13 world
4 Hi
36 how
44 are
5 you
56 ?
If I use
grep -f file1 file2
I get the following output
13 world
4 Hi
44 are
5 you
56 ?
I want output as shown below
13 world
4 Hi
5 you
I've to match the exact line number at the beginning of the line!!
How can I do it??
I need to write a shell script for that..