Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Extracting specific lines from data file

$
0
0
Hello,
Is there a quick awk one-liner for this extraction?:

file1
Code:

49389 text55
52211 text66

file2
Code:

59302 text1
49389 text2
85939 text3
52211 text4
13948 text5

Desired output
Code:

49389 text2
52211 text4


Thanks!!

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images