2021 Jan. 24.
lsof | grep 'FILENAME' ResultCode=$? if [ ${ResultCode} -eq 0 ]; then echo "FILENAME is opened." else echo "FILENAME is not opened." fi
2021 Jan. 24.
lsof | grep 'FILENAME' ResultCode=$? if [ ${ResultCode} -eq 0 ]; then echo "FILENAME is opened." else echo "FILENAME is not opened." fi