mac上的.sh脚本出现问题

时间:2016-10-30 21:32:19

标签: bash sh

我正在尝试制作一个转到411.com的脚本,并找到有关您正在寻找的人的信息:

clear
echo -n "Nombre: "
read fname
echo

#Por si no responde el usr
if [[ -z $fname ]]; then
  echo
  echo "No has introducido un Nombre."
  exit
fi
echo -n "Apellido: "
read lname

#Por si no responde el usr
if [[ -z $lname ]]; then
  echo
  echo "No has introducido un Apellido."
  exit
fi
echo "Buscando a: $fname $lname"
echo "========================="
echo
sleep 1
echo "Encontrado: $fname $lname "
echo "=========================="
echo
read -p "Presionas <enter>"

google -new-tab http://www.411.com/name/$fname - $lname/ &`enter code here`

并且它给出了这个错误:

./ find.sh:line 31:google:command not found

我正在使用macosx sierra,以防它有帮助

1 个答案:

答案 0 :(得分:0)

该错误意味着shell中没有google命令。当你可以做open http://411.com/...时,为什么会这样?

相关问题