当您通过Ant运行Java文件时,所有输出前面都有[java]
- 标记。
你如何删除它?
示例:
[java] | *
[java] | :irc.cs472.cs.drexel.edu
[java] | 372 test :- * Welcome
[java] | on our new IRC server, ru
[java] | nning on: *
[java] | :irc.cs472.cs.drexel.edu
[java] | 372 test :- * Debian G
[java] | NU/Linux (www.debian.org)
[java] | *
[java] | :irc.cs472.cs.drexel.edu
[java] | 372 test :- *************
[java] | *************************
[java] | ************
[java] | QUIT
[java] Type \m to | :irc.cs472.cs.drexel.edu
[java] bring up | NOTICE test :Connection s
[java] the menu a | tatistics: client 0.1 kb,
[java] t any time | server 1.6 kb.
[java] ___________________________________
[java] Please enter your choice :
BUILD SUCCESSFUL
Total time: 1 minute 39 seconds
答案 0 :(得分:1)
答案 1 :(得分:0)
您可以使用sed
。将ant
输出传送到...
sed " s/^\[JAVA\] //"