linux - 在 Linux 中使用对话框获取选定目录
问题描述
我需要打印 /home/lurdes/Destktop 这是所选文件夹。
dialog --title "text" --fselect ../
FILE=$(dialog --stdout --title "Please choose a file" --fselect $HOME/ 14 48)
echo "${HOME} file chosen."
我怎样才能做到这一点?我只被允许使用对话框。
解决方案
推荐阅读
- react-native - React Native 更改日历高度
- c++ - 如何使用 MSVC 开发人员命令提示符编译涉及外部库的程序?
- wordpress - 自定义分类法以及当帖子选择了多个术语时如何保留它们?
- java - 替换 EditText 选择
- laravel - HTTP 请求由 apache 处理,但不是由 Laravel 处理?
- encoding - Transformer模型中位置编码的实现细节?
- r - 在 ggplot 中需要帮助,使用误差条进行多因子条形图
- laravel-7 - 如何使用 php artisan serve 解决“参数过多...”错误
- mongodb - 如何在不覆盖 MongoDB 的情况下更新文档列表字段?
- java - Visual Studio Code 中的 Java 代码格式问题