I have the following example file:root:server1:2014-12-12:x:Open:adm bin daemon lp mail other root sys userssectmp:server1:2014-12-12:x:Open:userssmbnull:server1:2014-12-12:x:Locked:idssav:server1:2014-12-12:x:Locked:sav userssshd:server1:2014-12-12:x:Locked:sshdsys:server1:2014-12-12:x:Locked:syssystemp:server1:2014-12-12:x:Open:bin sys usersI want to create a new file with each login account that belongs to more than one group put on a separate line, such as:root:server1:2014-12-12:x:Open:adm root:server1:2014-12-12:x:Open:bin root:server1:2014-12-12:x:Open:daemon root:server1:2014-12-12:x:Open:lp root:server1:2014-12-12:x:Open:mail root:server1:2014-12-12:x:Open:other root:server1:2014-12-12:x:Open:root root:server1:2014-12-12:x:Open:sys root:server1:2014-12-12:x:Open:userssectmp:server1:2014-12-12:x:Open:userssmbnull:server1:2014-12-12:x:Locked:idssav:server1:2014-12-12:x:Locked:sav sav:server1:2014-12-12:x:Locked:userssshd:server1:2014-12-12:x:Locked:sshdsys:server1:2014-12-12:x:Locked:syssystemp:server1:2014-12-12:x:Open:bin systemp:server1:2014-12-12:x:Open:sys systemp:server1:2014-12-12:x:Open:users
Output a colon delimited file to another file
text processing;scripting