SHELL中逐行读取文件示例

#!/bin/sh

input="./main.go"

while read line
do
  echo $line
done < $input

  

posted @ 2021-02-07 23:31  kevin_coding  阅读(29)  评论(0)    收藏  举报