i have two text files.
one with one column of word like
File1:
--------
washington
jersey
texas
and then there is another file.
File2:
------
washington 34
Michigan 78
jersey 98
boston 876
texas 1078
i want the awkscript for searching the words from file1 in file2 and returns all lines that have the words and then print it to another file such that the file3 should contain
File3:
-------
washington 34
jersey 98
texas 1078
is there an awk script which can take care of this.
Thanks,
Ajay
one with one column of word like
File1:
--------
washington
jersey
texas
and then there is another file.
File2:
------
washington 34
Michigan 78
jersey 98
boston 876
texas 1078
i want the awkscript for searching the words from file1 in file2 and returns all lines that have the words and then print it to another file such that the file3 should contain
File3:
-------
washington 34
jersey 98
texas 1078
is there an awk script which can take care of this.
Thanks,
Ajay