module load hdfs
export HADOOP_CLASSPATH=$(hadoop classpath)
hadoop fs -copyFromLocal <input file> <hadoop directory>
javac -classpath ${HADOOP_CLASSPATH} -d ./classes_folder ./SubstringFinder.java
jar -cvf sf.jar -C ./classes_folder
hadoop jar sf.jar SubstringFinder -D mapred.reducer.tasks=<number of reducers> <hadoop path to input> <hadoop path to output> -numSegments <number of segments of t in input>