我在互联网上搜索过,网站说我们可以根据需要编辑.cshrc文件,然后执行第一个文件,然后执行.login文件。
那很好,但两者之间的确切区别是什么。请用通俗的话说。谢谢
我想如果有人指出我脚本中的错误。我从中学习的来源是如此错误,这就是为什么它让我感到困惑。
本脚本的用途:它将计算从用户输入的任何数字到数字 1 的数字
#!/bin/bash
echo -n Enter a number
read number
if (($number > 0)) ; then
index = $number
while [ $index => 1 ] ; do
echo $index
((index--))
break
done
fi
Run Code Online (Sandbox Code Playgroud)
它给出的错误:索引:找不到命令