shell脚本循环读文件一行并打印
#!/bin/bash
读取文件
filename="file.txt"
循环读取每一行并打印
while read line; do echo "$line" done < "$filename"
原文地址: https://www.cveoy.top/t/topic/fr5J 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#!/bin/bash
filename="file.txt"
while read line; do echo "$line" done < "$filename"
原文地址: https://www.cveoy.top/t/topic/fr5J 著作权归作者所有。请勿转载和采集!