Little scripting help required.
Hi , I need little help regarding my script.
I have a file called abc which looks below. Rohan 12 Rakesh 23 Ajay 25 Another file looks like this (xyz). Mumbai Delhi Madras How would i add column mentioned in second file so that the file looks as below. Rohan 12 Mumbai Rakesh 23 Delhi |
man paste
Cheers, Tink |
If the two files have the same number of rows, you can try the paste command, e.g. something like:
Code:
paste -d' ' abc xyz Edit: as Tinkster said a bunch of seconds ago! ;) |
Quote:
|
Please mark it as such next time. I did this time around.
Cheers, Tink |
All times are GMT -5. The time now is 03:08 AM. |