linux - Bash: Search Contents of File A in File B and Print lines of File A in File C -
i have 2 files , b file a:
976464 792992
file b
timestamp,record1,976464,8383,abcd
i want search each record in file , file b , print records match. records printed must file b
for example, above should print:
timestamp,record1,976464,8383,abcd
i want accomplish in shell scripting. file size huge.
you don't need awk
here. simple grep
job:
grep -ff file1 file2 timestamp,record1,976464,8383,abcd
linux shell unix awk
No comments:
Post a Comment