摘要: list=`last -n 5|sed "s/[ ][ ]*/-/g"|sed -n "1,5p"` res="["for val in $listdo res=${res}"${val%?},"doneres=${res%?}"]"echo $res 由于linux shell数组和go数组不一样 阅读全文
posted @ 2020-03-30 11:31 黄烤鸭 阅读(366) 评论(0) 推荐(0) 编辑