#!/bin/sh NAME=$(echo "${@}"|tr : \ ) case "$NAME" in machine/*) passage show "${NAME}" ;; *) passage show "${NAME}" | head -c -1 ;; esac