Hallo
I have some Tasks with (/system/bin/)grep, which I use in a Run Shell Action (without root).
I need to find words (for a scrabble word finder) in a textfile and I need some wildcards in the pattern.
The words are line by line, e.g.
AB,AB,1
ABU,BAU,2
...
BI,BI,94472
BO,OB,363425
BÜ,ÜB,587275
...
My grep command is this, e.g.:
grep "^B.," /path/to/wordlist.txt
but this does NOT find BÜ,..., only BI,... and BO,.... One dot does not find an Umlaut because they use two chars (UTF8) and the grep I use seems to be not aware of this.
Then I tried a lot other things, first I had the -E (for extended RegExp) parameter, but it does not change anything in such easy patterns.
Furhtermore I tried different wildcards, \w or \D or even [^,] (I still dont need the -E switch here!) or [A-ZÄÖÜ] but BÜ is never found.
Only with two dots: "^B..," but then grep finds words with 2 letters for the dot, which I dont want to find.
In Termux all this is working, also on my Ubuntu PC. I cannot use the Termux grep in Tasker, not working (when I use the whole path, because it is in Termux App-dir).
No change when I check "Use Tasker Settings" (yes, the Tasker Settings App is installed).
Only I get a message to contact the developer ;)
Is there maybe a different and working version of grep I could use?
Thanks, frank
I have Tasker 6.1.31 on Android 9 (without root).