×
UNIX.COM Login
Username:
Password:  
Show Password





×
UNIX.COM Login
Hello Unregistered
Welcome from United States
You are somewhere around Ashburn
Last Visit: 1 Minute Ago @ 03:25 PM
Bits: 0
UNIX Time: 1531682719

👤


Join On A String

UNIX for Dummies Questions & Answers




Kindly Note - This is a Single User Post by Forum Member jimmyf Regarding:
Join On A String.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old 10-11-2012   -   Original Discussion by jimmyf
jimmyf's Unix or Linux Image
jimmyf jimmyf is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 18 May 2018, 12:29 PM EDT
Posts: 112
Thanks: 57
Thanked 2 Times in 1 Post
Desired output would be for file2: ABCD-123 FGH. There are multiple ones though. So it would be:
ABCD-123 FGH and BCDE-345 JKL etc.
Not using sed because each instance is unique. Not sure if I'm being clear.

---------- Post updated at 03:24 PM ---------- Previous update was at 03:17 PM ----------

Just looked at my response, let me re-phrase it.
Desired output would be
ABCD-123 AAA
ABCD-456 BBB
ABCD-789 CCC
But these would appear in different places in the text file. Hope this is clearer and I do appreciate the help.