shell脚本逐行读取文件内容

[[email protected] log]# cat analyse.sh
#!/bin/sh

while read LINE
do
echo ‘one line content: ‘
echo $LINE
echo ”
done < $1

[[email protected] log]#

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.