#!/bin/bash
echo " <ctrl> + D quit input. "
while echo -n "input film name you like: "; read FILM
do
echo "yeah, ${FILM} is a good film!"
done
#!/bin/bash
while read LINE
do
echo $LINE
done <name.txt #放到最后才会逐行读入
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |