[KLUG Members] Command line operators

Bryan J. Smith members@kalamazoolinux.org
17 Jan 2002 08:13:31 -0500


On Wed, 2002-01-16 at 13:32, Ian wrote:
> I specifically need (at this moment) the 'and' operator as in: 'find -name
> A* -and- B*'

find . | grep name1 |grep name2

> But in any case i think it would be wise to learn some command line
> scripting.

The "[" operator in Bash is actually a function/program call.  You use
"-o" for "OR" and "-a" for "AND" to put compound comparisons together.

-- Bryan

-- 
Bryan J. Smith, Engineer          mailto:b.j.smith@ieee.org
AbsoluteValue Systems, Inc.       http://www.linux-wlan.org
SmithConcepts, Inc.            http://www.SmithConcepts.com