* helper script for escaping argument strings

This commit is contained in:
Reinhard Pointner 2013-09-22 05:30:11 +00:00
parent dc1ef24ad9
commit 0b4fcc19a1
2 changed files with 8 additions and 0 deletions

View File

@ -1638,6 +1638,7 @@ PtP
PTpOWeR
PtS
PTTeam
PublicHD
Pudding
PUKKA
Purana

View File

@ -0,0 +1,7 @@
net.sourceforge.filebot.cli.CLILogging.CLILogger.setLevel(java.util.logging.Level.OFF)
console.printf('Enter: ')
def s = console.readLine()
// $, `, or \
console.printf('%n"' + s.replaceAll('["$`\\\\]', {'\\'+it}) + '"%n')