--- nfo/bash/ff 2004/10/15 10:51:04 1.1 +++ nfo/bash/ff 2004/11/07 01:58:30 1.2 @@ -3,7 +3,7 @@ N='ff' C='rabit@netfrag.org, 08.10.2004' F="$N - Follow file" -I='$Id: ff,v 1.1 2004/10/15 10:51:04 rabit Exp $' +I='$Id: ff,v 1.2 2004/11/07 01:58:30 joko Exp $' #--------------------------------------------------------------------- # If unset, set the per-user file list to a good default: @@ -59,6 +59,18 @@ $E 'Done.' exit ;; +(-i) + iselect=`which iselect` + if [ -z $iselect ]; then + echo "ERROR: iselect is not installed" + exit + fi + sel=`cat $FFFILES | $iselect -a -c -n "Select file to tail"` + if [ ! -z $sel ]; then + tail -f $sel + fi + exit + ;; (?*) CheckFileList; [ -z $FileListExists ] && exit CountFiles