[c09aa8]: / clusters / scripts / cleanfiles.java

Download this file

12 lines (11 with data), 568 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
import java.util.*;
import java.io.*;
public class cleanfiles {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(new File("cleanctrpinds.csv"));
PrintWriter out = new PrintWriter(new File("cleanedctrpinds.csv"));
while(in.hasNext()) out.println(in.nextLine().replaceAll("[^\\p{ASCII}]", "").replaceAll("0", "").replaceAll("1", "").replaceAll("2", "").replaceAll("3", "").replaceAll("4", "").replaceAll("5", "").replaceAll("6", "").replaceAll("7", "").replaceAll("8", "").replaceAll("9", ""));
in.close();
out.close();
}
}