Quote:
If that's the issue, than you can force grep to use a proper locale by setting LC_ALL=en_us.UTF-8 yourself in your script.


I tried all of these:

Code:
LC_ALL=en_us.UTF-8
LC_ALL="en_us.UTF-8"
LC_ALL=en_us.UTF8
LC_ALL="en_us.UTF8"
LC_ALL=en_us.utf8
LC_ALL="en_us.utf8"


Those all produced an error message:
Code:
warning: /volume1/homes/admin/CrowCam/TimeTest.sh: line 30: setlocale: LC_ALL: cannot change locale (en_us.utf8): No such file or directory


This one seemed to work (at least it did not produce an error message):
Code:
LC_ALL=en_US.utf8

... However it did not solve the problem. The Grep command (without my multi-character workaround) still produces no results. It fails the same way, whether I set LC_ALL before scraping the HTML or before issuing the grep command.

For clarity, this is the code that I added to the top of my example script:
Code:
# Force the value of the locale variable:
echo ""
echo "Previous Locale:"
echo $LC_ALL
echo "Forcing locale."
LC_ALL=en_US.utf8
echo ""
_________________________
Tony Fabris