Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

Compare the two column strings and 2nd column string count should match with second file 2nd column string count if not match do not display it

$
0
0

File1

10/22/2020   LDYA LDYA-PLSP10/22/2020   LDYA LDYC-PLSP10/18/2020   LBQD LBQD-PLSP10/18/2020   LDMN LDMN-PLSP10/18/2020   LDMN LLMA-PLSP10/18/2020   LDMN LDMN-DLV510/18/2020   LKNC LKNC-PLSP

File2

KLS3   LDYA LDYA-PLSP      101703.171805  ComplLPLd  10/17/2020KLS3   LDYA LDYC-PLSP      101803.180418  ComplLPLd  10/18/2020USD4   LBQD LBQD-PLSP      101903.190443  ComplLPLd  10/19/2020IMD4   LDMN LDMN-PLSP      101903.190416  ComplLPLd  10/19/2020AMS4   LDMN LLMA-PLSP      101903.190422  ComplLPLd  10/19/2020NLS    LKNC LKNC-PLSP      101903.190413  ComplLPLd  10/19/2020

Desired output

KLS3   LDYA LDYA-PLSPKLS3   LDYA LDYC-PLSPUSD4   LBQD LBQD-PLSPNLS    LKNC LKNC-PLSP 

Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>