用bash写一个脚本检查是否存在gperf文件
#!/bin/bash
if [ -f /usr/bin/gperf ]; then echo "gperf exists" else echo "gperf does not exist" fi
说明:
-f 参数用于判断一个文件是否存在
/usr/bin/gperf 是 gperf 的安装路径,根据实际情况可能会有所不同
原文地址: https://www.cveoy.top/t/topic/fpjf 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#!/bin/bash
if [ -f /usr/bin/gperf ]; then echo "gperf exists" else echo "gperf does not exist" fi
原文地址: https://www.cveoy.top/t/topic/fpjf 著作权归作者所有。请勿转载和采集!