- 论坛徽章:
- 0
|
本帖最后由 greaterwei 于 2018-09-12 19:01 编辑
求助报错:
cat structures.dat
Ni-FA 3 3 2
Ni-FA-GeomOptFix 3 3 2
cat runsim.sh
for m in Output
do
mkdir $m
cd $m
for n in $(cat ../structures.dat | awk '{print $1}')
do
mkdir $n
cd $n
cat > simulation.input <<EOF
FrameworkName $n
UnitCells 1 1 1
BlockPocketsFileName ${n}_1.7block
EOF
uca=$(cat ../../structures.dat | grep -w $n | awk '{print $2}')
ucb=$(cat ../../structures.dat | grep -w $n | awk '{print $3}')
ucc=$(cat ../../structures.dat | grep -w $n | awk '{print $4}')
sed -i "s/^.*UnitCells.*$/UnitCells $uca $ucb $ucc/" simulation.input
cd ..
done
cd ..
done
sh runsim.sh
报错sed: -e expression #1, char 29: unterminated `s' command
找不到原因,谢谢大家。
|
|