x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

Help with scripting...no, not TF2

Created 29th May 2010 @ 14:59

Add A Reply Pages: « Previous 1 2

So basically:

1. Remove everything starting with ‘>’ and ending by second ‘|’
2. Shorten the two word from “Foo Bar” to “F Bar”
3. Remove the rest up until “chloroplast”, and deleting it too
4. Add newline and loop through the rest deleting any spaces

Grem

rEJ
TG

Quoted from dotfloat™

So basically:

1. Remove everything starting with ‘>’ and ending by second ‘|’
2. Shorten the two word from “Foo Bar” to “F Bar”
3. Remove the rest up until “chloroplast”, and deleting it too
4. Add newline and loop through the rest deleting any spaces

Pretty much.

o

Excal
UC#3

Sorry, just got back in.

Here you go. Download that, save as DNAFileTransformer.java (probably simplest in the same directory as the files you want to format). Run `javac DNAFileTransformer.java`, then `java DNAFileTransformer *.txt` to format all your text files.

That will work off the bat on your Mac, but for Windows, JDK isn’t installed by default, so you may need to grab it from here. Grab me on Steam if you have any problems, or just want a compiled version.

Grem

rEJ
TG

Quoted from o

Sorry, just got back in.

Here you go. Download that, save as DNAFileTransformer.java (probably simplest in the same directory as the files you want to format). Run `javac DNAFileTransformer.java`, then `java DNAFileTransformer *.txt` to format all your text files.

That will work off the bat on your Mac, but for Windows, JDK isn’t installed by default, so you may need to grab it from here. Grab me on Steam if you have any problems, or just want a compiled version.

I’ve added you on steam. Am I running `javac DNAFileTransformer.java` in cmd prompt or..? I’m using win7 atm.

Add A Reply Pages: « Previous 1 2