#!/bin/shif[$(id-u)-ne0];thenecho"run me as root!">&2exit1fiif[$#-eq0];thenecho"usage: $0 /dev/lork">&2exit1fiDEV="$1"INPUT="test"echo"input \"$INPUT\" to $DEV">&2echo"$INPUT">"$DEV"echo"(EC $?)">&2echo"output from $DEV:">&2
cat"$DEV"echo"(EC $?)">&2exit0