Linux command to repeat a string n times - Super User

2010-07-20 1 min read bash Linux
I was working on something and needed to output the string n times. I have required this even to print a line with &#8217;-&#8217; or &#8217;=&#8217; but this time I badly wanted it in bash. So I searched google and found this: printf &#8221;Amit Agarwal%.0s&#8221; {1..5} Explanations and other examples: <a href=""><h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="">1 reviews of Flat-Rate US Terminations ( <li class="zemanta-article-ul-li"><a href="http://www. Continue reading

Linux command to repeat a string n times

2010-06-17 1 min read bash
There are more than one situation where you wished that there was a simple way to print a character n number of times. At least I face that quite often, especially when you want to print a menu. I found this post today which has pretty good solution and also the way how it works : <a href=""> Related articles by Zemanta Linux Version Of Unreal IRC Servers Contained Trojans Since 2009 (techie-buzz. Continue reading