#!/bin/bash file_name=‘./test‘ text=‘(‘ for s in `cat $file_name`;do text=$text‘"‘$s‘",‘ done text=${text%?}‘)‘ echo $text
shell--字符串拼接
原文:https://www.cnblogs.com/ai-tech/p/15253472.html