#!/bin/sh # date: April 4, 2002 # author: john # script to identify list of files # then provide user with option of opening # # add later: find /export/home/john/ -name "*.txt" >> list # create a menu by displaying current directory and # assigning number. COUNT=0 for x in `ls` do set * COUNT=`expr $COUNT + 1` echo "$COUNT> $x $!" done set * echo echo "Enter a number from 1 to $#: \c" read LIST while [ $LIST != 1 ];do LIST=`expr $LIST - 1` shift done echo "You picked \"$1\"!" exit