[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.3

How can I use a batch file to parse multiple multi-line text files and output into CSV format?

Asked by gp423 in Miscellaneous Programming, MS DOS, Windows Batch Scripting

Tags: DOS, batch, CSV, text file

I am trying to create a batch process that will parse multiple multi-line text files (samples attached) and output their contents into a single pipe-delimited CSV file.  I can't use commas as delimiters in the output because the baseline data may contain commas.  Unfortunately, I am a novice when it comes to programming so any assistance would be greatly appreciated.

Here is some sample content from a couple of the attached files:
=====
1-12345-12345-98765-98765
COMPANY ONE
Options: Debugger,  SQL Optimizer,  PL/Sql Kb

=====
9-99999-88888-77777-66666
COMPANY ONE

=====
8-88888-77777-66666-55555
123456-7890

=====
0-11111-77777-33333-22222
COMPANY THREE
Options:  none

=====

The first line is a serial number or product key.  The second is the internal organization name which purchased the license.  The third line may or may not exist, but is focused on a brief product description.  The fourth line is either always blank or nonexistent.  (The "=====" was used to designate different files and does not exist within the real data.)

Q: How can I take the content from each file and concatenate the data into a single line (per file) which is pipe-delimited, then append each additional file on subsequent lines?
Attachments:
 
sample file 1
 
 
sample file 2
 
 
sample file 3
 
 
sample file 4
 
 
sample file 5
 
 
sample file 6
 
 
sample file 7
 
 
sample file 8
 
[+][-]09/02/09 10:17 AM, ID: 25243231Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/09 10:17 AM, ID: 25243236Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Miscellaneous Programming, MS DOS, Windows Batch Scripting
Tags: DOS, batch, CSV, text file
Sign Up Now!
Solution Provided By: Shift-3
Participating Experts: 4
Solution Grade: A
 
[+][-]09/02/09 10:23 AM, ID: 25243303Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/09 10:35 AM, ID: 25243469Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/09 10:49 AM, ID: 25243610Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 11:07 AM, ID: 25243807Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 11:13 AM, ID: 25243868Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/09 11:20 AM, ID: 25243946Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 12:35 PM, ID: 25244736Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/09 12:35 PM, ID: 25244743Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/09 12:42 PM, ID: 25244810Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 01:17 PM, ID: 25245159Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 01:47 PM, ID: 25245551Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 02:03 PM, ID: 25245678Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/02/09 02:06 PM, ID: 25245699Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 02:31 PM, ID: 25245878Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/02/09 02:32 PM, ID: 25245888Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625