comma sep

Posted on 2014-04-10
Medium Priority
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..


i do not have any application or nothing I can download for security reasons
Question by:tonydba
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
LVL 36

Expert Comment

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)
LVL 35

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.

LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39991743
What programs (i.e. text editors) do you have access to?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.

Author Comment

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

Accepted Solution

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

In find you need: \n
replace with ,
LVL 36

Expert Comment

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)
LVL 35

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

Author Closing Comment

ID: 40381292
tried with \n

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

765 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