1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh # Copyright (c) 1998 Lucent Technologies - All rights reserved. file=$1 case "$2" in -f) echo "$file" cat >$file ;; "") echo "$file?" read yn </dev/tty case "$yn" in [Yy]*) cat >$file esac esac