【发布时间】:2022-12-01 20:18:27
【问题描述】:
How to split a single variable into multiple arguments?
In fish shell, one can use
set my_var (echo 'line1
line2
line3' | string split '\n')
./my_command $my_var
this is equivalent to
./my_command line1 line2 line3
so a single variable acting as multiple parameters, how to do that in bash shell?
【问题讨论】:
标签: bash