💻 Software
How to join files on the command line without creating temp files?
Fresh5 days ago
Mar 15, 202615011 viewsConfidence Score0%
0%
Problem
I have two files in a Linux / Bash environment: I'm trying to join the two files on the first column. The following does not work because the input files must be sorted on the match field. I can get around this by creating two temp files and joining them But is there a way to do this without creati…
Error Output
# Example data $ cat abc 2 a 1 b 3 c $ cat bcd 5 c 2 b 1 d
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to join files on the command line without creating temp files?
Low Risk
The following will work in the bash shell: You can join on any column as long as you sort the input files on that column The -k2 argument to sort means sort on the second column. The -j2 argument to join means join on the second columns. Alternative…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix