Created
September 7, 2016 17:04
-
-
Save dimotsai/9763e222d53225a09e5dbcf0c59bbda8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| let content = fs.readFileSync(process.argv[2], 'utf-8'); | |
| let lines = content.split('\n'); | |
| lines.pop(); | |
| lines.forEach(function(line) { | |
| let account = line.split(':'); | |
| account.unshift('ptc'); | |
| console.log(account.join(',')); | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment