-bash:findstr: command not found

项目场景:

在CentOS7.6 上部署公司的一个系统


问题描述:

执行命令报错

keytool -list -keystore "/app/jdk11Openj9/lib/security/cacerts" -storepass changeit|findstr jal21xplm

报错如下:

-bash:findstr: command not found

原因分析:

Linux系统没有findstr命令,findstr命令是Windows系统自带的


解决方案:

findstr改成grep成功获取到信息

keytool -list -keystore "/app/jdk11Openj9/lib/security/cacerts" -storepass changeit|grep jal21xplm

你可能感兴趣的:(日常Bug,bash)