~ubuntu-branches/ubuntu/hardy/surfraw/hardy

« back to all changes in this revision

Viewing changes to elvi/filesearching

  • Committer: Bazaar Package Importer
  • Author(s): Christian Surchi
  • Date: 2002-03-02 23:54:34 UTC
  • Revision ID: james.westby@ubuntu.com-20020302235434-q857cvoylnmm7a84
Tags: upstream-1.0.7
ImportĀ upstreamĀ versionĀ 1.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# $Id: filesearching,v 1.1 2001/12/23 10:15:18 proff Exp $
 
3
# elvis: filesearching  -- Search files on filesearching (www.filesearching.com)
 
4
. surfraw || exit 1
 
5
 
 
6
w3_usage_hook () {
 
7
    cat <<EOF
 
8
Usage: $w3_argv0 [options] [search words]...
 
9
Description:
 
10
  Surfraw search files on www.filesearching.com (www.filesearching.com)
 
11
EOF
 
12
    w3_global_usage
 
13
}
 
14
 
 
15
w3_config
 
16
w3_parse_args "$@"
 
17
# w3_args now contains a list of arguments
 
18
if test -z "$w3_args"; then
 
19
    w3_browse_url "http://"www.filesearching.com/advanced/""
 
20
else
 
21
    escaped_args=`w3_url_of_arg $w3_args`
 
22
    w3_browse_url "http://www.filesearching.com/cgi-bin/s?q=${escaped_args}&t=f&d=&l=en&x=22&y=15"
 
23
fi