Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env scala
- !#
- args foreach { file =>
- var newFile = file.replaceAll("""\s+""","_")
- newFile = newFile.replaceAll("""[^\w\d\.]""","_")
- Runtime.getRuntime.exec("mv +\"" + file + "\" \"" + newFile + "\""))
- }
Add Comment
Please, Sign In to add comment