I have a question on sleep and wait... I have a script that will do something like this:
find . -type d -maxdepth 1 |grep -v "\.$"|head -n2|while read DIR
do \
echo "cd $DIR"
(cd $DIR
ls -1 *.files |while read i; do echo i ; done
echo -e "just finished $DIR place other something\nand hit enter")
done
I need it to wait until I give it input after echo -e "just finished......", not sleep but sit there and wait. Any help on this?
find . -type d -maxdepth 1 |grep -v "\.$"|head -n2|while read DIR
do \
echo "cd $DIR"
(cd $DIR
ls -1 *.files |while read i; do echo i ; done
echo -e "just finished $DIR place other something\nand hit enter")
done
I need it to wait until I give it input after echo -e "just finished......", not sleep but sit there and wait. Any help on this?