需要在bash的副本線幫助5倍..複製一行並粘貼在bash Linux的
**Input: (input.txt)**
http://localhost.com/123/test.png
http://localhost.com/456/test.png
中的newfile這樣既行應粘貼5倍...... ,所以我想下面的輸出像這樣..
**Output: (output.txt)**
http://localhost.com/123/test.png
http://localhost.com/123/test.png
http://localhost.com/123/test.png
http://localhost.com/123/test.png
http://localhost.com/123/test.png
http://localhost.com/456/test.png
http://localhost.com/456/test.png
http://localhost.com/456/test.png
http://localhost.com/456/test.png
http://localhost.com/456/test.png
那麼怎麼可能? 能有人給shell腳本來實現這一點..
謝謝
你可以得到從[這裏]更多的答案(http://unix.stackexchange.com/questions/81904/repeat-each-line-multiple-times ) – 2014-10-19 16:14:24
Thanx for link @avinash – TonyStark 2014-10-20 09:43:54