Guest User

Untitled

a guest
Jun 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/env scala
  2. !#
  3.  
  4. args foreach { file =>
  5. var newFile = file.replaceAll("""\s+""","_")
  6. newFile = newFile.replaceAll("""[^\w\d\.]""","_")
  7. Runtime.getRuntime.exec("mv +\"" + file + "\" \"" + newFile + "\""))
  8. }
Add Comment
Please, Sign In to add comment