it’s been years since I’ve done stuff like this, but the tool I’d probably use 
is OWL. Others may suggest PERL or SED. If you google how to merge columns of 
text using OWL, you might find exactly what you’re looking for.

Hope that helps.


> On Jun 25, 2019, at 3:19 AM, A G <[email protected]> wrote:
> 
> Hello,
> 
> I want to copy a column from file to be the first column in another file 
> contains many columns. How can I do that using the command line?
> 
> file 1 as
> 1
> 2
> 2
> -
> -
> file 2 as
> 
> 2  5
> 3  5
> 3  5
> -  -
> -  -
> 
> I want fil3 as 
> 
> 1 2  5
> 2 3  5
> 2 3  5
> - -  -
> - -  -
> 
> 
> 
> -- 
> -- 
> You received this message because you are subscribed to the Linux Users Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at 
> http://groups.google.com/group/linuxusersgroup 
> <http://groups.google.com/group/linuxusersgroup>
> References can be found at: http://goo.gl/anqri <http://goo.gl/anqri>
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules 
> <http://tinyurl.com/LUG-Rules>)
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Linux Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/linuxusersgroup/eb397135-dac2-4bbb-8107-464e2ffd71c2%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/linuxusersgroup/eb397135-dac2-4bbb-8107-464e2ffd71c2%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/linuxusersgroup/AB8377A0-2BC1-42F0-B558-A91B124D47A8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to