我有一个像这样的字符串: dog cat bird whale
dog cat bird whale
我想得到 dog dog cat cat bird bird whale whale
dog dog cat cat bird bird whale whale
所有的词都在同一行。任何的想法?
linux script bash string
bash ×1
linux ×1
script ×1
string ×1