grep -c "night[[:space:]]*life" texts/*.txt
most versions of grep should work for that -- the -c tells it to count the results and the [[:space:]]* matches zero or more spaces
C
> On 22 November 2017 at 04:55 Alan Sondheim <[email protected]> wrote:
>
>
>
>
> ====================================================
> ====================================================
>
> nightlife
>
> ====================================================
> ====================================================
>
> http://www.alansondheim.org/ashfield163.jpg
> http://www.alansondheim.org/ashfield166.jpg
>
> until tonight I have not used the word/s "night life"
> or "nightlife" in my work:
>
> k3% grep -h nightlife texts/*.txt > yy
> k4% wc yy
> 0 0 0 yy
> k5% grep -h "night life" texts/*.txt > yy
> k6% wc yy
> 0 0 0 yy
>
> ====================================================
> ====================================================
>
> who cares?
>
> ====================================================
> ====================================================
>
> _______________________________________________
> NetBehaviour mailing list
> [email protected]
> https://lists.netbehaviour.org/mailman/listinfo/netbehaviour
_______________________________________________ NetBehaviour mailing list [email protected] https://lists.netbehaviour.org/mailman/listinfo/netbehaviour
