`
yaojingguo
  • 浏览: 209121 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Usage of grep

 
阅读更多

Find error or exception in a log file:

 

grep -i -E '((error)|(exception))' log

分享到:
评论

相关推荐

    Linux Shell Scripting Cookbook.epub

    Proper usage of shell commands can easily solve many complex tasks with a few lines of code, but most linux users don't have the right know-how to use the Linux shell to its full potential. ...

    Linux Shell Scripting Cookbook.mobi

    Proper usage of shell commands can easily solve many complex tasks with a few lines of code, but most linux users don't have the right know-how to use the Linux shell to its full potential. ...

    pgrep [Win]

    Usage: pgrep [OPTION]... PATTERN [FILE] ... <If you run from source code> python pgrep [OPTION]... PATTERN [FILE] ... Search for PATTERN in each FILE or standard input and output a paragraph ...

    bingrep:grep的一个小实用程序,用于在内存中转储指针和二进制数据,转储实时进程内存

    用法Exactly one of -f or -p has to be specified.Usage: 1) bingrep -f <filename> [pattern] 2) bingrep -p <pid> [-i ] [pattern]Pattern can be one of: -s <from> -e <to> [-w ] -b <hex> -a <ascii>For type ...

    gosec:Gosec使用PGP管理机密

    Usage of ./gosec: -d=false: Decrypt -e=false: Encrypt -g= " " : Regex String -s= " " : Directory Root directory must be specified 安装 GO15VENDOREXPERIMENT=1 godep get github.com/rphillips/gosec

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    ora分析脚本

    Usage: ora [-u user] [-i instance#] <command> [] General -u user/pass use USER/PASS to log in -i instance# append # to ORACLE_SID -sid <sid> set ORACLE_SID to sid -top # limit some large queries ...

    cfssl_v1.61_arm64_6in1.zip

    cfssl   master ±  ll |grep cfssl -rwxr-xr-x 1 starwu staff 16578536 1 14 14:52 cfssl* -rwxr-xr-x 1 starwu staff 12350640 1 14 15:05 cfssl-bundle* -rwxr-xr-x 1 starwu staff 12526560 1 14 15:06 ...

    taily:尾巴罗兹logz。 现在有了颜色!

    安装在本地npm install taily 或全球npm install taily -g 用法taily [options]Options:-h, --help output usage information-V, --version output the version number-g, --grep [regex] Grep the results of the ...

    shell脚本常用脚本备用20例.md涉及系统

    echo "Number of lines matching the pattern '$pattern' in $logfile: $(grep -c "$pattern" "$logfile")" ``` - **关键命令解析**: - `grep -c`:搜索匹配给定模式的行并计数。 - `$pattern`:用于匹配的...

    BSD Hacks.pdf

    2. **Getting the Most Out of grep (HACK 14):** A detailed guide on utilizing `grep`, a command-line utility for searching text patterns in files, including advanced usage and tips for filtering and ...

    Linux for Developers

    * **Basic Commands:** Teaches how to use basic developer commands such as gzip and grep, essential for file compression and searching through files respectively. #### Navigating Linux Filesystems * *...

    bash-exporter:用于bash脚本的简单,简约的Prometheus导出器,用Go编写

    hostname="node-1",job="job-2",verb="put"} 0.13bash{env="",hostname="node-1",job="job-2",verb="time"} 0.5bash{env="dev",hostname="",job="job-1",verb="items"} 21用法Usage of ./bash-exporter: -debug ...

    Reading-disk-sequences.rar_reading_硬盘序列号

    在“Reading the identification of hard disk.doc”文档中,可能详细阐述了这些方法的步骤和示例,包括可能遇到的问题及解决方案,例如权限问题、多硬盘环境下的处理等。 总的来说,掌握读取硬盘序列号的技术对于...

    Android代码-httpclient-android

    Usage Download the repository and simply hit ./build.sh script Dependencies Required dependencies are: JDK 6 or newer Gradle 2.4 or newer find, grep, svn, patch and sed (or gsed for OS X) for ...

    shell编程.txt shell基本使用

    # Check the exit status of grep if [ "$?" -ne 0 ]; then echo "Not Found \"$1\" in $2" exit 1 else echo "Found \"$1\" in $2" fi ``` #### 五、变量赋值与使用 1. **基本赋值** 在Shell中,可以简单地...

    Wiley.Publishing.Fedora.Linux.Toolbox.1000+.Commands.for.Fedora.CentOS.and.Red.Hat.Power.Users.and.Red.Hat.Power.Users.2008.pdf

    - **Special Characters**: Understanding the meaning and usage of characters like `$`, `*`, `|`, and `;`. - **Variables**: Defining and using environment and shell variables. - **Command Substitution**...

    aGdaREP:在 Agda 中实现抓地力

    aGdaREP-在Agda中实施grep Usage: aGdaREP [OPTIONS] PATTERN [FILENAME] OPTIONS: -h Print this help -V Version -v Invert the match -i Ignore case 要求 该项目应使用以下命令进行编译: Agda 2.6.1.1版...

    LINUX下探查DNS运行状态

    grep named >/tmp/named.log 这样,/var/log/message 中与 BIND 相关的日志信息都会写入 /tmp/named.log 文件中了。主要有两种日志:LOG_NOTICE 级日志和 LOG_INFO 级日志。 LOG_NOTICE 级日志主要记录 BIND ...

Global site tag (gtag.js) - Google Analytics