发布时间:2021-06-08 09:40:51
上下两行变为一行#!/bin/bash# 将奇数行的换行符替换为空格count=1cat token | while read linedo if [ `expr ${count} % 2` -eq 0 ];then echo ${line}|awk -F: '{print $2}'|tr -d '"}' else echo ${line}|awk '{print $1}'|tr "\n" " " fi let count++done......【阅读全文】
阅读(496) | 评论(0) | 转发(0)