Mailinglist Archive: opensuse (3135 mails)

< Previous Next >
Re: [opensuse] filtering
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Fri, 9 Mar 2007 23:39:05 -0800
  • Message-id: <200703092339.05425.rschulz@xxxxxxxxx>
On Friday 09 March 2007 16:32, Anders Johansson wrote:
> ...
>
> I'm not very happy with the string tests, but I couldn't find a bash
> function that returned true on substring match. If anyone can think
> of a cleaner way of doing it, I'd love to know it

Check out the [[ value = pattern ]] tests. There are options for both 
glob and RE interpretation of "pattern."


Randall Schulz
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups