[筆記] check if command output contain a string in shell script
```
if python3 check.py | grep -q "cdnimg"; then
exit 1
fi
```
Reference:
https://stackoverflow.com/questions/16931244/checking-if-output-of-a-command-contains-a-certain-string-in-a-shell-script
2021-03-20 21:27:24
留言
Last fetch: --:--
現在還沒有留言!