![]() |
|
[Python] Simple Python Script - Question - Combine matching hashes into one line - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Simple Python Script - Question - Combine matching hashes into one line (/showthread.php?tid=6110463) |
Simple Python Script - Question - Combine matching hashes into one line - PlutoPicks - Sep 20, 2020 Hey I have a question I have two separate documents. 1 document containing hashed lines and and second document containing the plaintext . is there an easy way to replace the hashed/encrypted ones in the first document with the plaintext lines in the second document? Does anyone have a simple python script that can do this or knows how to code one? Thanks! RE: Simple Python Script - Question - Combine matching hashes into one line - Harley Quinn - Sep 20, 2020 I could probably help you with this, send me a PM when you are free RE: Simple Python Script - Question - Combine matching hashes into one line - vorticalbox - Sep 21, 2020 just copy the second file over the first? PHP Code RE: Simple Python Script - Question - Combine matching hashes into one line - paxx - Sep 24, 2020 (Sep 21, 2020 07:05 AM)vorticalbox Wrote: just copy the second file over the first? Yea, I'm curious why you need python to create a file it sounds like you already have. RE: Simple Python Script - Question - Combine matching hashes into one line - Lindros - Sep 24, 2020 I need a bit more information to help you with the best possible solution to what you want. Do you want what is in the file 1 to be deleted, and rewritten with what is in file 2? Why not just rename, or copy and rename file 2 to be the same as file 1? If so, what you are asking is just basic reading and file writing if you want a script to do this. I'm assuming you have a lot of files you want to do this to? |