我在处理bash脚本中带有空格的文件名时遇到了问题。cat hello\ message\ \(1\).txtfile=hello\ message\ \(1\).txt返回:cat: message:No such file or directory
cat: '(1).txt': No such file or
我有一个脚本,它操作数据,创建参数并将它们发送到第二个脚本。其中一个参数包含一个空格。2"). script2.sh ${args[@]}for f in "$@" echo f=$f我希望将"1 2"作为单个参数,但分别接收它们:f=1f=B
我还尝试将script2中的输入转换为列表in=($@)并<em