Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'grep'

1012442 - grepfind grep grepfind find
preview unavailable
1012042 - grepfind grep grepfind find
preview unavailable
1012020 - grepfind: grep grepfind find
  1. #!/bin/sh
  2. #
  3. if test $# = 0 -o "$1" = "-h" -o "$1" = "--help" ; then
  4.    echo ' grepfind -- recursively descends directories and egrep all files '
  5.    echo ''
  6.    echo ' Usage: grepfind [--help][-h][start_directory] egrep_search_pattern'
  7.    echo ''
  8.    echo ' The current directory is used as start_directory if parameter'
  9.  
977723 - Bash script: script bash grep varlogmessages
  1. root@starchild:/tmp# cat fwlogsearch2.sh
  2. #!/bin/bash
  3.  
  4. # Searches FW logs on Linode, which are contained in /var/log/messages* files
  5.  
  6.         function search {
  7.                 local ip  #ip is local to the function
  8.                 echo "Searching... "
  9.  
worth-right
worth-right
worth-right