source: nutchez-0.1/plugins/parse-ext/command @ 177

Last change on this file since 177 was 66, checked in by waue, 15 years ago

NutchEz - an easy way to nutch

File size: 348 bytes
Line 
1#!/bin/bash
2#
3# Sample bash script as external command invoked by parse-ext plugin
4#
5# 20040701, John Xing
6
7set -e
8
9if  [ $# -ne 1 ]; then
10  echo Usage:$0 mimeType >&2
11  exit 1
12fi
13
14case $1 in
15"application/vnd.nutch.example.cat")
16  cat
17  ;;
18"application/vnd.nutch.example.md5sum")
19  md5sum
20  ;;
21*)
22  echo "Can't parse mimeType $1" >&2
23  exit 1
24esac
Note: See TracBrowser for help on using the repository browser.