Re: find verbosity

[prev] [thread] [next] [lurker] [Date index for 2003/09/06]

From: peter (Peter da Silva)
Subject: Re: find verbosity
Date: 17:31 on 06 Sep 2003
> Still, I can't imagine anyone ever cares about these errors, so they
> should be supressed by default, or with a simple flag, not lots of
> typing.

2>/dev/null is a simple flag. More importantly, it works for EVERY command.

And, yes, if I'm doing a find in my own directory, I definitely want to see
those errors. Just stick this in ~/bin/find and have done with it:

#!/bin/sh

case ".$1" in
  .-v) shift; exec /bin/find ${1+"$@"};;
  *) exec /bin/find ${1+"$@"} 2>/dev/null;;
esac

There's stuff above here

Generated at 14:02 on 01 Jul 2004 by mariachi 0.52