1
I need to create a file to finish a mod i am working on, except it would take way too long to do it manually.
Cutting to the chase i need to create a file that looks like the following
1|5.000
2|4.950
3|4.900
4|4.850
And that pattern to be repeated X times or until the second number is 0.5 for example, the number before the " | " is not important, it's only for organization and / or naming, I can probably add it in post, I did this on a smaller scale manually of ~30 numbers and it was tedious enough, but i got to a point where i actually need this on a far larger scale.
I've yet to find a way to automate that kind of a process with "online text tools" and have been trying to figure out how to do patterns like that for a while, though it's a bit difficult to Google it (Or at least for me, I'm not a native English speaker)
What would be the best way to approach this?
Thanks in advance guys!
Use a
bash
/awk
/perl
script, or any language you are comfortable with. Otherwise use Excel and export to text file. – simlev – 2017-07-29T22:51:09.5601Ah, How did i not think of excel!! In fact even Google Sheets worked, just had to export as tab separated values format and open with Notepad++ and worked perfectly, Thank you so much! – Martin Angelov – 2017-07-29T22:57:51.743