[ad_1]
I am attempting to redirect the output of the following sbt command
sbt "show external-dependency-classpath" > out.log
to a file.
Seems like the file contains escape characters
ESC[0m[ESC[0minfoESC[0m] ESC[0mLoading global plugins from /Users/xxx/.sbt/0.13/pluginsESC[0m
ESC[0m[ESC[0minfoESC[0m] ESC[0mLoading project definition from /Users/xxx/.jenkins/workspace/jpa-xxxx/projectESC[0m
ESC[0m[ESC[0minfoESC[0m] ESC[0mSet current project to play-java-jpa-example (in build file:/Users/xxx/.jenkins/workspace/jpa-xxxx/)ESC[0m
ESC[0m[ESC[0minfoESC[0m] ESC[0m* Attributed(/Users/xxx/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.12.2.jar)ESC[0m
ESC[0m[ESC[0minfoESC[0m] ESC[0m* Attributed(/Users/xxxx/.ivy2/cache/com.typesafe.play/twirl-api_2.12/jars/twirl-api_2.12-1.3.4.jar)ESC[0m
ESC[0m[ESC[0minfoESC[ .... and more
Any suggestions on how I could get a cleaner output ?
[ad_2]
لینک منبع