shell编程_从文件中按行读取数据
摘要:
从文件中按行读取数据,有多种方式。 1 使用read命令 #! /bin/bash count=1 file_name=$HOME/script/$1 cat $file_name |while read line do count=$[ $count + 1] echo "line_num-${c 阅读全文
posted @ 2021-09-19 21:59 XiaoXiaoli 阅读(245) 评论(0) 推荐(0)
浙公网安备 33010602011771号