X-debbugs-Cc: thegrendel....@gmail.com Package: abs-guide Version: 6.2-1 Severity: wishlist File: /usr/share/doc/abs-guide/html/contributed-scripts.html
10 for filename in * #Traverse all files in directory. 11 do 12 echo "$filename" | grep -q " " # Check whether filename Why not do case $filename in *\ *)... ? We also note "An on-screen countdown timer would be nice." Maybe something like dm=nodm s=4 perl -we 'use strict; $|++; for(my $i='$s';$i>=0;$i--){sleep 1;print "$i "}'& echo -n "==================== $0: ==================== Type some characters and then RET within $s seconds, else \"$dm\" will start. (Shift-PgUp/PgDn don't count.) Type just RET to start right away. "; read -t $s x && set +o monitor && kill $! if test -z "$x" then /etc/init.d/$dm start fi I used perl to avoid making one process for each sleep. Probably there is a better pure bash solution, maybe using several read -timeout 1's. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org