greptest.sh

来自「对windows平台程序开发到Linux平台的程序开过渡做了说明」· 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 + -
显示快捷键?