/usr/lib/irstlm/bin/rm-start-end.sh is in irstlm 6.00.05-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #! /bin/bash
function usage()
{
cmnd=$(basename $0);
cat<<EOF
$cmnd - removes sentence start/end symbols
USAGE:
$cmnd [options]
OPTIONS:
-h Show this message
EOF
}
# Parse options
while getopts h OPT; do
case "$OPT" in
h)
usage >&2;
exit 0;
;;
esac
done
sed 's/<s>//g' | sed 's/<\/s>//g' | sed 's/^ *//' | sed 's/ *$//' | sed '/^$/d'
|