Hi-
Was wondering if I could get help with a shell script I am writing to read in 10 -20 directories from a filesystem and then pause, press any key and then read in another 10 or 20 directories and pause again until I read them all.
Here is my code - a bit embarrassing...
#!/bin/bash
DIRS="/data/cusserv/"
for D in $DIRS
do
count=0
ls -lt $D | awk '{print $9}'
count=`expr $count + 1`
echo "Argument number $count : $1 "
read $I
done
All my directories are listed at once - wanted to step thru them 10-20 at a time.
Thanks for any help!
-P