我有一个带 3 个参数的 shell 脚本
test.sh a b c
我想给每个参数换行
像这样的东西:
test.sh a
b
c
我在 AIX 上 谢谢。
最佳答案
只需将 \
放在行尾,它就会“转义”其后字符的含义,在本例中为换行符。
test.sh a \
b \
c
关于linux - 如何在新行中传递每个 shell 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28098743/