From: | Stroller <stroller@××××××××××××××××××.uk> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] bash script question | ||
Date: | Mon, 18 Aug 2014 14:03:42 | ||
Message-Id: | 7C87B48A-9B3B-4A89-8FD0-A492096E48DF@stellar.eclipse.co.uk | ||
In Reply to: | Re: [gentoo-user] bash script question by Kerin Millar |
1 | On Mon, 18 August 2014, at 1:16 pm, Kerin Millar <kerframil@×××××××××××.uk> wrote: |
2 | ... |
3 | > (( count += matches )) |
4 | > done < <(grep -hcm1 -F "$string" ${files[*]}) |
5 | |
6 | Oh, this is lovely. |
7 | |
8 | I've learned some things today. |
9 | |
10 | > if (( count == ${#files[@]} )); then |
11 | |
12 | May I ask why you prefer these brackets for evaluation, please? |
13 | |
14 | Stroller. |
Subject | Author |
---|---|
Re: [gentoo-user] bash script question | Kerin Millar <kerframil@×××××××××××.uk> |