用途tee:
# This way you will see the output.
ls /tmp | tee file1.txt file2.txt
# With this line you won't.
ls /tmp | tee file1.txt file2.txt >/dev/null
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
59 次 |
| 最近记录: |