Tools for modeling links between files / URLs / etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
516 B

#!/bin/sh
print_help() {
echo "$0 - mark and operate on files"
echo
echo "Usage: mark [command] [args]"
echo " mark -h Print this help message"
echo
echo "You must specify a command."
exit 1
}
if [ $# -lt 1 ] || [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
print_help
fi
subprog="mark-$1"
# Make sure that the command we've been given exists:
command -v "$subprog" >/dev/null 2>&1 || {
echo "mark: '$1' is not a mark command. See 'mark -h'."
exit 1
}
shift
exec "$subprog" "$@"