Hello, So, here is the same patch, where I replaced the small pipes with only one sed invocation. Still easy to read... ;-)
Thierry -- Thierry Lathuille Annemasse, France
--- mindi.orig 2005-04-10 01:41:55.000000000 +0200 +++ mindi 2005-10-07 00:31:15.000000000 +0200 @@ -2256,18 +2256,14 @@ main_fname=$1 read incoming while [ "$incoming" != "" ] ; do - incoming=`echo "$incoming" | tr -s ' ' '\t'` - i=`echo "$incoming" | cut -f2` - if [ "$i" = "=>" ] ; then -# was cut -f1,3 - for fname in `echo "$incoming" | cut -f1,3` ; do - fname=`LocateFile $fname` - for f in $fname ; do - [ -e "$f" ] && echo $f - done - done - fi - read incoming + incoming=`echo "$incoming" |sed 's/(.*)//; s/[[:blank:]]//g; /=>$/d; s/=>/ /'` + for fname in `echo "$incoming"` ; do + fname=`LocateFile $fname` + for f in $fname ; do + [ -e "$f" ] && echo $f + done + done + read incoming done }