Hi, guys. I have one question:
I have two files: passwd and shadow (the number of records in these files are not equal)the contents of them are below:
passwd:
**************
ftp:x:24:24:
sshd:x:71:65:
uucp:x:10:14:
brownj:x:5005:1000:
sherrys: x :5006:1000:
...
*************
passwd:
**************
...
ftp::13503::
uucp::13503::
brownj:ASDFASERE#$#s:0:0
sherrys:GAS3434f#$#$@4:0:0
...
*****************
I want to merge them into a file or a variable called "join", which should have the following contents:
***************
...
ftp:24:*
uucp:10:*
brownj:5005:ASDFASERE#$#s
sherrys:5006:GAS3434f#$#$@4
...
***********************
How can I do this?
Thank you very much for your time in advance
-Keyang