[Tutor] string.count in Windows vs UNIX
alan.gauld@bt.com
alan.gauld@bt.com
Wed, 24 Jul 2002 10:37:13 +0100
> UNIX it finds the correct number of occurances (6665 - double-checked
> with grep -e "Subject: Results:" mail.file | wc -l) but when run on
> Windows (2K/XP) it stops finding, consistently, after 4195
> occurances.
The most likely thing is the different EOF markers.
If its a Unix file it may have a stray CTRL-Z character
in there (search with grep or vi to see?).
In Unix that won't affect the search coz CTRL Z is not EOF
but on Windows/DOS it is...
Thats all I can think of.
Alan G.