Search Results

Search: Posts Made By: appu6885
5,738
Posted By naree
try this out
Hi ,

diff -U 2 file1 file2 | awk '/^\ / {print $0}' >> file3

diff -U 2 file1 file2 | awk '/^-/ {print $0}' >> file4

Thanks&Regards
Naree
17,811
Posted By phamp008
Oops, I found a thread posted by Ygor awk...
Oops, I found a thread posted by Ygor

awk -F " " 'BEGIN{while(getline<"file1") a [$1]=1 } ; a [$1] !=1 {print $2 } ' file2

This command works great.
17,811
Posted By dennis.jacob
One quick approch: grep -v "$(cat file1)"...
One quick approch:

grep -v "$(cat file1)" file2 | awk '{print $2}'
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy