Bash 脚本:读取文件内容并输出到终端
#!/bin/bash
定义文件路径
FILE_PATH='./file.txt'
逐行读取文件内容并输出
while read line do echo '$line' done < '$FILE_PATH'
结束脚本
exit 0
原文地址: https://www.cveoy.top/t/topic/nJLV 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#!/bin/bash
FILE_PATH='./file.txt'
while read line do echo '$line' done < '$FILE_PATH'
exit 0
原文地址: https://www.cveoy.top/t/topic/nJLV 著作权归作者所有。请勿转载和采集!