greptest.sh
来自「linux下一些命令的c语言的实现」· Shell 代码 · 共 8 行
SH
8 行
#!/bin/sh
if grep 'Chinese' a.txt > /dev/null 2>&1
then
echo 'This file includes thw word 'Chinese''
else
echo 'This file dosen't include the word'Chinese''
fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?