#!/bin/sh # # File : /adm/shell/grep_mudlib.sh # Purpose : a shell script to list the names of all files in the mudlib # that match the regular expression \.\.*\-*[0-9]*\] # eg foo[3..-1] # and outputs to the file /GREP.out # Run from shell by typing # /proj/tmi/tmi-2/adm/shell/grep_mudlib2.sh # (Or just "grep_mudlib2.sh" if you have this dir in your cmd path) # Takes a few minutes to run # 95-03-13 : Leto wrote the find command # Pallando changed it to a shell script and installed it here # Modified, documented and installed by Pallando # nohup find /proj/tmi/tmi-2 -print -type f -exec grep -n -e '\.\.*\-*[0-9]*\]' {} \; > /proj/tmi/tmi-2/GREP.out 2> /proj/tmi/tmi-2/GREP.err &