#scala-demo
##执行shell命令
val source = Source.fromURL("http://www.baidu.com","UTF-8")
println(source.mkString)
import sys.process._
"ls -la ." !
val result = "ls -l ." #| "grep README" #| "wc -l" !!
//!!必须空一行
println(result)
"grep baidu" #< new URL("http://www.baidu.com") !
学习scala的测试用例,参考于scala练习