我正在尝试检查文件是否存在,但是使用通配符.这是我的例子:
if [ -f "xorg-x11-fonts*" ]; then
printf "BLAH"
fi
Run Code Online (Sandbox Code Playgroud)
我也尝试过没有双引号.
我想检查我的android设备中的目录中是否有某个文件.
我在windows批处理中使用以下行
adb shell find /mnt/sdcard/koinoxrista -name Bill.txt
Run Code Online (Sandbox Code Playgroud)
如果文件存在,我想做一些事情,如果文件不存在,我想做其他事情.
我怎样才能做到这一点?