bash command output as parameters
问题 Assume that the command alpha produces this output: a b c d If I run the command beta $(alpha) then beta will be executed with four parameters, "a" , "b" , "c" and "d" . But if I run the command beta "$(alpha)" then beta will be executed with one parameter, "a b c d" . What should I write in order to execute beta with two parameters, "a b c" and "d" . That is, how do I force $(alpha) to return one parameter per output line from alpha ? 回答1: Similar to anubhava's answer, if you are using bash