Solved

comma sep

Posted on 2014-04-10
9
139 Views
Last Modified: 2014-10-14
Suppose I have a big list within a text file with out commas..
How will I give comma in between..

A
B
C
D


i do not have any application or nothing I can download for security reasons
0
Comment
Question by:tonydba
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 35

Expert Comment

by:Kimputer
ID: 39991636
For ease of you, you really need a program.
Option 1: Advanced editors like Notepad++. Use advanced find & replace:
find: \n\r
replace: ,

Option 2: Copy paste to Word. Record a macro, from the first line, press END, DEL, the "," key, CURSOR LEFT (it should jump to the next line, if not, use CURSOR DOWN, HOME)
Stop macro record, run macro record until the end.

Option 3: VB script (maybe I will provide code later if you really need it)
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39991698
You don't need a macro in Word.

Just press CTRL+H (or click on "Replace"), then type ^p in the find box and , in the replace box.
Or, if your file has Unix style endings, type ^l in the find box and , in the replace box.

HTH,
Dan
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39991743
What programs (i.e. text editors) do you have access to?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 15

Expert Comment

by:Praveen Venu
ID: 39993491
Copy this to excel, in the second column add comma and drag to the end row.
Now copy back to notepad.
0
 

Author Comment

by:tonydba
ID: 39994776
I tried with this but now working..
Advanced editors like Notepad++. Use advanced find & replace:
find: \n\r
replace: ,
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39994790
You have Unix style line endings.

In find you need: \n
replace with ,
0
 
LVL 35

Expert Comment

by:Kimputer
ID: 39994792
Sorry, my bad:
it's: \r\n
(But you have to set search mode to Extended, it's in the same window left bottom)
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39994807
To see the kind of line endings you have, go to View->Show symbol->Show end of line.
notepad    replace
0
 

Author Closing Comment

by:tonydba
ID: 40381292
tried with \n
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question