这是一个linux脚本shell,我在Ubuntu 13.1上运行它
我运行脚本时得到line 9: syntax error: unexpected end of file
。
这是我的剧本:
!#/bin/bash
x=$(stat --printf="%a\n" hi1.txt)
y=$(stat --printf="%a\n" hi1copy.txt)
echo "$x"
echo "$y"
if [ "$x" == "$y" ]; then
echo "same la!"
fi
答案 0 :(得分:5)
变化:
!#/bin/bash
到
#!/bin/bash
答案 1 :(得分:1)