⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 options.sh

📁 linux平台中
💻 SH
字号:
#!/bin/sh# Test for POSIX.2 options for grep## grep [ -E| -F][ -c| -l| -q ][-insvx] -e pattern_list #      [-f pattern_file] ... [file. ..]# grep [ -E| -F][ -c| -l| -q ][-insvx][-e pattern_list]#      -f pattern_file ... [file ...]# grep [ -E| -F][ -c| -l| -q ][-insvx] pattern_list [file...]#: ${srcdir=.}failures=0# checking for -E extended regexecho "abababccccccd" | ${GREP} -E -e 'c{3}' > /dev/null 2>&1if test $? -ne 0 ; then        echo "Options: Wrong status code, test \#1 failed"        failures=1fi# checking for basic regexecho "abababccccccd" | ${GREP} -G -e 'c\{3\}' > /dev/null 2>&1if test $? -ne 0 ; then        echo "Options: Wrong status code, test \#2 failed"        failures=1fi# checking for fixed string echo "abababccccccd" | ${GREP} -F -e 'c\{3\}' > /dev/null 2>&1if test $? -ne 1 ; then	echo "Options: Wrong status code, test \#3 failed"	failures=1fiexit $failures

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -