比如说,吾判断/etc/ld.so.config是否包含指定目录:
1. grep "/opt/quantum6/bin" /etc/ld.so.conf >> /dev/null 2. if [ $? -ne 0 ]; then 3. echo not found 4. fi
比如说,吾判断/etc/ld.so.config是否包含指定目录:
1. grep "/opt/quantum6/bin" /etc/ld.so.conf >> /dev/null 2. if [ $? -ne 0 ]; then 3. echo not found 4. fi