好的,我目前正在为一个类编写一个bash脚本,该脚本可以拉取特定文件名的用户输入。这些文件都存储在同一个目录中,所以有必要将路径添加到用户输入的文件名中吗?echo -en "Please enter a .log name (/home/me/logs/****.log) : "其中,filename是稍后在case语句中使用的用户</
我正在处理一个小脚本,问题的一部分是找到要处理的正确文件。脚本设置工作目录,并提示用户输入文件名如下:#Now to set the directory for the user files, which will be used to execute the$echo We are currently working from the