我的代码是这样的,我路过了4个参数的脚本shell脚本
ex.sh "wavpath" "featpath"
“ex.sh” 代码
#!/bin/bash
wavPath=$1
featPath=$2
rm -f $scpFile
echo $wavPath
echo $featPath
for dir in `ls -R $wavPath|grep ":"|cut -d':' -f1`
do
mkdir -p ${dir/$wavPath/$featPath}
done
错误消息:
坏取代
,它是在${dir/$wavPath/$featPath}
和显示两个路径
谁能帮助
不需要对我们留言(不要使用大写锁定)。人们不太愿意以这种方式来帮助你。 – Femaref