Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to do this in any text editor?

I have a file which is like

email = [email protected]
email = [email protected]
email = [email protected]

Can I make it like this?

email = [email protected]
email = [email protected]
email = [email protected]

Can I do this in any text editor? Or is there any other way? Thanks.

like image 708
Manoj M J Avatar asked Nov 03 '22 12:11

Manoj M J


1 Answers

I would say use Vim, but for Notepad++:

hold Alt and select the column of numbers that you wish to change. Then go to Edit->Column Editor and select the Number to Insert radio button in the window that appears. Then specify your initial number and increment, and hit OK. It should write out the incremented numbers.

copied from here.

To apply it, do it once for @gmail.com then the 1,2,3, lastly the prefix email = myemail.

I really like to recommend vim (again), you could do many stuff like these with one-liners.

like image 90
cctan Avatar answered Nov 11 '22 14:11

cctan