Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Is there any programs that will do this automatically for me?

So basically I have a list of this with over 600 lines on it and I need a comma at the end of every line, I can't be bothered sitting here adding comma's and I'm sure there is something out there that'll do it for me. Please help! 🎉
http://stackoverflow.com/questions/11003...every-line
There ya go.
Moving on in life in such a way that doesn't include HF. HF allowed me to get into the security field and peaked my interest: I appreciate everyone's time, effort, and encouragement. If for some reason you have a means to message me outside HF, feel free to, but I won't be coming back.
Macro would do it bro, record the key strokes and repeat. 🤝
Download Notepad++

1. CTRL+F
2. Click the "Replace" tab
3. Mark regex at the bottom-left
There's 2 textboxes that you fill out, what you want to replace with whom
4. Click "Replace All" at the right side :)
linux makes your life easy:

Code
sed 's/$/,/' yourfile
If you need this send me a PM and I'll make it, or do as "The Thrill" said and use Notepad++
If you have a mouse with buttons that are customizable, create a macro that will insert a comma and go down a line etc.
http://www.textfixer.com/tools/alphabeti...-words.php Can do this (tick the box that says "Use a comma separator (For csv style data and arrays)").


Edit: Doesn't seem to working, sorry OP.
(Dec 10, 2015 06:04 PM)Bot Ulric Wrote:  If you have a mouse with buttons that are customizable, create a macro that will insert a comma and go down a line etc.

I do this :D
I'd much rather prefer to do this with vim.
PHP Code

<?php 
:%s!^!,! 
XMPP: pm me
(Dec 10, 2015 07:46 PM)Betty Blue Wrote:  I'd much rather prefer to do this with vim.
PHP Code

<?php 
:%s!^!,! 

Vi can do the same thing but it's available on more vanilla platforms than Vim is.
(Dec 10, 2015 07:48 PM)Dvorak Wrote:  Vi can do the same thing but it's available on more vanilla platforms than Vim is.
You owe me even more beers for this.
XMPP: pm me
(Dec 10, 2015 07:48 PM)Dvorak Wrote:  Vi can do the same thing but it's available on more vanilla platforms than Vim is.

Have you really not understood yet the usage of a stream editor ?

PHP Code

<?php 
sed 
"s/$/,/g" <filename> 

PHP Code

<?php 
awk 
'{print $0","}' <filename> 

Applies to both you eve and Zack.
(Dec 11, 2015 06:30 AM)Loki123 Wrote:  Have you really not understood yet the usage of a stream editor ?

PHP Code

<?php 
sed 
"s/$/,/g" <filename> 

PHP Code

<?php 
awk 
'{print $0","}' <filename> 

Applies to both you eve and Zack.
There isn't just one way to skin a cat nice person
XMPP: pm me


Possibly Related Threads...
Thread / Author Replies Views Last Post
by huManipulatorSep 19, 2012 10:49 PM 4 105 Sep 19, 2012 10:49 PM
Last Post: Cybride
by Turtle™Apr 24, 2012 04:01 PM 1 40 Apr 24, 2012 04:01 PM
Last Post: flako5rocks