Created
July 2, 2018 15:43
-
-
Save Leowbattle/efa6fe18443d9d27dce8f2221b984369 to your computer and use it in GitHub Desktop.
Prank your friends by running this script on their Java project (please make sure it is backed up first)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javaFiles = Dir.glob "#{ARGV[0]}/**/*.java" | |
javaFiles.each do |javaFile| | |
javaCode = File.read javaFile | |
javaCode = javaCode.gsub /l|cl/, "" | |
File.open(javaFile, "w") {|file| file.puts javaCode} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment