[SunHELP] merge file

Sheldon T. Hall shel at cmhcsys.com
Sun Oct 27 23:00:12 CST 2002


"Sangbutsarakum, Patai" <patais at reach.com> said

> #!/Dear/Scripter

Heh.  I like that.
 
> I've two 2 files, each file has 1 column,
> if I want these 2 file to be one file that has 2 column each row.
> 
> File1:
> a
> b
> c
> d
> ..
> 
> File2:
> 1
> 2
> 3
> 4
> 
> nee result file to be:
> a  1
> b  2
> c  3
> 
> Please suggest me how to done that
> with the shell script in command line.
> Thanks in advances,

See the "paste" command; it does exactly that.

-Shel



More information about the SunHELP mailing list