A*********t 发帖数: 64 | 1 面试碰到的问题,两个命令,aa, bb, 都接受参数
可以这样么:aa -a 1 -b 2 "bb -c 3" -d | t*****3 发帖数: 81 | | i*******r 发帖数: 51 | 3 It depends on how you want to run aa and bb.
Case 1, if you want aa takes the results of bb as parameter,
you can use
aa -a 1 -b 1 -d `bb -c 3`
Case 2, if you want to bb process aa's results as standard input.
you can use
aa -a 1 -b 1 | bb -c 3
【在 A*********t 的大作中提到】 : 面试碰到的问题,两个命令,aa, bb, 都接受参数 : 可以这样么:aa -a 1 -b 2 "bb -c 3" -d
| A*********t 发帖数: 64 | 4 Thanks!
【在 i*******r 的大作中提到】 : It depends on how you want to run aa and bb. : Case 1, if you want aa takes the results of bb as parameter, : you can use : aa -a 1 -b 1 -d `bb -c 3` : Case 2, if you want to bb process aa's results as standard input. : you can use : aa -a 1 -b 1 | bb -c 3
|
|