+function finame
authorshort <>
Sat, 9 Feb 2002 00:17:00 +0000 (00:17 +0000)
committershort <>
Sat, 9 Feb 2002 00:17:00 +0000 (00:17 +0000)
+set +H
+shopt -s mailwarn

.bashrc

diff --git a/.bashrc b/.bashrc
index bb25002..f1fabc0 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -85,6 +85,9 @@ function cvsignoreallrm { cvsignoreall | xargs rm -f; }; export -f cvsignoreallr
 function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
 function ulimitme { ulimit -m 100000 -d 150000 -v 200000; }; export -f ulimitme
 function grep { ( ulimitme; `which grep` "$@"; ); }; export -f grep
+function finame { find . `
+       awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -iname *"ARGV[i]"*"; }' "$@";
+       `; }; export -f finame
 function rsync { `which rsync` -v -e ssh --progress --stats --partial --block-size=512 "$@"; }; export -f rsync
 function tohex { od -An -txC /tmp/out|tr -d '\n '|tr 'a-f' 'A-F';echo; }; export -f tohex
 function edall {
@@ -97,6 +100,8 @@ function mi { (
        ); };export -f mi
 
 ulimit -c 0
+set +H
+shopt -s mailwarn
 
 if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi