Indexing numerics

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Indexing numerics

Post by Thunderstone »



I am having trouble indexing numeric values. I am using Webinator for
Linux. I have stored the gw commands in a file that reads:

gw -w0 -D1 http://ipdemo2.doa.state.la.us/comm/
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -s "delete from refs
where Url='ipdemo2.doa.state.la.us/'"
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -s "delete from html
where Url='ipdemo2.doa.state.la.us/'"
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -s "delete from refs
where Url='ipdemo2.doa.state.la.us/comm/'"
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -s "delete from html
where Url='ipdemo2.doa.state.la.us/comm/'"
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -s "delete from refs
where Url='ipdemo2.doa.state.la.us/comm/srchagps.htm'"
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -s "delete from html
where Url='ipdemo2.doa.state.la.us/comm/srchagps.htm'"
gw -d/usr/local/etc/httpd/htdocs/webinator/comm -k"\alnum(1,99)"
-index

When I run this command file it returns the error:
Incorrect usage: -k\alnum(1,99)

I have tried to run it without the quotes (i.e. -k\alnum(1,99) ) and
it returns this error:
./index_comm: syntax error near unexpected token '-k\alnum(1'
./index_comm: ./index_comm: line 9: [repeats line 9]

Thank you for your time.
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Indexing numerics

Post by Thunderstone »



..

Are you using Webinator version greater than 1.1?

The expression is wrong anyhow. It should be -k"\alnum[2,99]"