awk error 'Invalid collation character: '
Hi,
I have a simple awk script for counting words:
{
x = $0
while (match(x, /[a-zA-Z\252\272\300-\377]('?[a-zA-Z\252\272\300-\377])*/)) {
tally[tolower(substr(x, RSTART, RLENGTH))]++
x = substr(x, RSTART+RLENGTH)
}
}
END {
for (x in tally) printf "%7d %s\n", tally[x], x
}
when i run the command gawk -f count.awk on the computers at the university it works as expected. However when I do the same command on my linux machine at home I get this error message:
gawk: count.awk:3: fatal: Invalid collation character: /[a-zA-Z���-�]('?[a-zA-Z���-�])*/
Both computers are running fedora6.
Why would it be doing this?
Thanx
Mash
|