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 'find'

1955503 - Display all MySQL databases modi: linux mysql sed find uniq
  1. #!/bin/sh
  2. # This script will find all MySQL databases modified within the last 90 days
  3.  
  4. export SEARCHPERIOD="90"
  5. export DBPATH="/var/lib/mysql/"
  6.  
  7. find $DBPATH -mtime -$SEARCHPERIOD -type f -exec dirname {} \; | replace $DBPATH "" | uniq
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.  
fantasy-obligation