I asked this question in Powershell forum but I didn't receive any help, so trying Perl now
I have file with data like this:
++++++++++++++++Input file +++++++++++++++++++++++++++++
User Name: Power DBA
Description:
Role: Power DBA
Last Login Date: Jul 1, 2011 4:54:18 PM
User Name: Power User
Description: Admin Team
Role: Power User
Last Login Date: Mar 15, 2011 8:16:19 AM
User Name: guest
Description: Monitoring
Role: Operator
Last Login Date: Dec 14, 2011 3:45:29 PM
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==
I need to convert this to CSV formatted file using Perl
+++++++++++++++++++++ file output should like this ++++++++++++++++++
User Name,Description, Role, Last Login Date
Power DBA,, Power DBA, Jul 1, 2011 4:54:18 PM
Power User,Admin Team,Power User, Mar 15, 2011 8:16:19 AM
guest,Monitoring,Operator,Dec 14, 2011 3:45:29 PM
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=====
Thanks
San
I have file with data like this:
++++++++++++++++Input file +++++++++++++++++++++++++++++
User Name: Power DBA
Description:
Role: Power DBA
Last Login Date: Jul 1, 2011 4:54:18 PM
User Name: Power User
Description: Admin Team
Role: Power User
Last Login Date: Mar 15, 2011 8:16:19 AM
User Name: guest
Description: Monitoring
Role: Operator
Last Login Date: Dec 14, 2011 3:45:29 PM
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==
I need to convert this to CSV formatted file using Perl
+++++++++++++++++++++ file output should like this ++++++++++++++++++
User Name,Description, Role, Last Login Date
Power DBA,, Power DBA, Jul 1, 2011 4:54:18 PM
Power User,Admin Team,Power User, Mar 15, 2011 8:16:19 AM
guest,Monitoring,Operator,Dec 14, 2011 3:45:29 PM
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=====
Thanks
San