Suppose we have a file contains the following information, termed input_file: A 0 B 1 C 2 1. Read file one per line (1): while read line do printf "$linen" done <data (2): exec 6 <data # create…
1. 概述 for 循环读取文件内容时, 输出被打得稀碎 2. 场景 需求 读入文件 逐行显示 源文件 Continuous Delivery with Docker and Jenkins Jenkins 2 Up and Running Jenkins 2.x Continuous Integration Cookbook(3rd) Jenkins Fundamentals 脚本 #!/bin/bash for line in `cat ${1}` do echo ${line} done…