2012-03-28 80 views
0

如何執行從bash腳本管道輸出?如何執行管道輸出?

我得到了這個bash腳本,我只想執行它的第一行。

例子:cat bash_script | head -n 1 | <execute>

回答

3

...你在bash執行。

cat bash_script | head -n 1 | bash