%20%EC%B0%BE%EB%8A%94%20%EB%8F%99%EC%95%88%20%EC%98%88%EC%83%81%EC%B9%98%20%EB%AA%BB%ED%95%9C%20EOF%EA%B0%80%20%EB%B0%9C%EC%83%9D%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
JACOB=192.168.1.66
ZAC=192.168.1.65
echo "Type someone's name, or type ? to list options."
read OPTNAME
if [ $OPTNAME = "?" ]; then
echo "Jacob's Computer: Type 'JACOB'"
echo "Zac's Computer: Type 'Zac'"
echo "Help: Type 'Help'"
else
if [ $OPTNAME = "JACOB" ]; then
echo "Jacobs Computer chosen."
echo "Now, enter the directory of the file you want to put onto this computer."
read FILEPATH
echo "Okay, would you like to specify a directory on the other computer, in which to place the file? (y/n)"
read YN
echo "DEBUG $YN"
if [ $YN = "y" ]; then
echo "Okay, in which directory would you like to put the file?"
read FILETO
echo "Are you ready to send the file? y/n"
echo "Reciever name: $OPTNAME"
echo "File to send: $FILEPATH"
echo "Where to put the file: $FILETO"
elif [ $YN = "n" ]; then
echo "Are you ready to send the file? y/n"
echo "Reciever name: $OPTNAME
echo "File to send: $FILEPATH"
echo "Where to put the file: N/A"
fi
elif [ $OPTNAME = "ZAC" ]; then
echo "Zacs Computer chosen."
fi
fi
이것은 파일을 지정하고 사용자가 파일을 자신의 컴퓨터로 보낼 수 있도록 작성하는 코드입니다. 실행할 때 다음 오류가 반환되는 문제가 있습니다.
filetransfer.sh: line 32: unexpected EOF while looking for matching `"'
filetransfer.sh: line 35: syntax error: unexpected end of file