• Log in or sign up for an account here: https://www.sythe.org/login

Looking for a coder or someone that can use python (will pay)

inpherus

inpherus-upgrades.com

Inpherus Donor
Joined
Jul 25, 2005
Sythe Gold
17
Messages
3,301
Location
australia
Two Factor Authentication User
Tier 1 Prizebox
It seems like a pretty simple task

I have a long list of coding, that i need some numbers changed

Theres about 30k lines that have "0000" in them, and i need them changed to be ascending (e.g. 0000-9999) I could do this by hand and change them 1 by 1, but thats fucked, is there anyone that can do some scripting shit to do it by program? let me know
 
It seems like a pretty simple task

I have a long list of coding, that i need some numbers changed

Theres about 30k lines that have "0000" in them, and i need them changed to be ascending (e.g. 0000-9999) I could do this by hand and change them 1 by 1, but thats fucked, is there anyone that can do some scripting shit to do it by program? let me know

This is easy to do as long as the characters are not encrypted.
Upload the file n i'll make a proggy for it.
 
Something like this?

Code:
inputFile = open("input.txt", "r")

lines = inputFile.readlines()
inputFile.close()

outputFile = open("output.txt", "w")

for lineNumber, line in enumerate(lines):
    newLine = line.replace("0000", str('%04d' % lineNumber))
    outputFile.write(newLine)
    
outputFile.close()
 
I'd probably do it for free in Python if you be a little more specific or upload the file. Can't really uniquely number 30k lines with 0000-9999.
 
PHP Shit Show 2k26
Must it be done in Python?
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
I can make you this too if you want, PM me. It'll take me like 10 minutes.
 
Two Factor Authentication User
Tier 1 Prizebox
It's ok guys, this can be closed I already found someone to do it for me, turned out to be 370k lines ( 5mb .txt file), thanks for the requests!
 
Back
Top