Output file should be like below with four columns: If first column matches between file1 and file2 then shell command should add column-2 from file-2 to file-1 as column-4. Sorry for confusion. Output should be like this.
This should be easily done with awk.
With 31 posts already, how far have you gotten in your implementation AND where exactly are you stuck?
Please show the effort!
I'm newe to shell and this is my first post can you please share the solution.
I tried using awk as below but i did't understand few parameters so i posted here for solution.
Sorry i did't get my expected results after running your command which you posted. Can you please look in to my requirement which i posted with example.
What's wrong with this output?
What do you get? And how's that different from the output above?
Please be as specific as possible AND use code tags when posting your code and/or data samples.
I'm getting exactly the output that you wanted.
Please provide the exact command that you're running (word by word - not what's been posted here, but rather what you typed on your end).
Also please provide the output of running cat -vet file1 and cat -vet file2 .
All the asks should be provided using code tags. The absence of the code tags will render this thread closed.
Thanks.