Print a row of 50 hyphens

awk 'BEGIN{while (a++<50) s=s "-"; print s}'
Change the number 50 to whatever number of characters you want. Change the character inside the double quotes to whatever you want printed.

0
By: SuperFly
2010-01-06 16:16:35
awk

11 Alternatives + Submit Alt

What Others Think

Seems this is the fastest! time (awk 'BEGIN{while (a++<50) s=s "-"; print s}') -------------------------------------------------- real 0m0.006s user 0m0.003s sys 0m0.004s
rodolfoap · 665 weeks ago
Seems this is the slowest!!! (to type.....)
levenbrech · 660 weeks and 6 days ago
A debt of gratitude is in order for giving late reports with respect to the worry, I anticipate read more. Zonnepanelen installateur Drogenbos
seomind · 30 weeks and 6 days ago
Wow what a Great Information about World Day its exceptionally pleasant educational post. a debt of gratitude is in order for the post. Zonnepanelen installateur Haacht
seomind · 30 weeks and 6 days ago
Nice knowledge gaining article. This post is really the best on this valuable topic. Zonnepanelen installateur Galmaarden
seomind · 30 weeks and 6 days ago
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. Zonnepanelen installateur Halle
seomind · 30 weeks and 6 days ago
I am overwhelmed by your post with such a nice topic. Usually I visit your blogs and get updated through the information you include but today’s blog would be the most appreciable. Well done! Zonnepanelen installateur Glabbeek
seomind · 30 weeks and 6 days ago
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming. Zonnepanelen installateur Herent
seomind · 30 weeks and 6 days ago
This website and I conceive this internet site is really informative ! Keep on putting up! Zonnepanelen installateur Grimbergen
seomind · 30 weeks and 6 days ago
When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. Zonnepanelen installateur Keerbergen
seomind · 30 weeks and 6 days ago
I have read your article; it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it. Zonnepanelen installateur Haacht
seomind · 30 weeks and 6 days ago
This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. Zonnepanelen installateur Herne
seomind · 30 weeks and 6 days ago
This is also a very good post which I really enjoy reading. It is not everyday that I have the possibility to see something like this. Zonnepanelen installateur Halle
seomind · 30 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Zonnepanelen installateur Hoeilaart
seomind · 30 weeks and 6 days ago
You completed a number of nice points there. I did a search on the issue and found nearly all people will have the same opinion with your blog. Zonnepanelen installateur Herent
seomind · 30 weeks and 6 days ago
I see the greatest contents on your blog and I extremely love reading them. Zonnepanelen installateur Holsbeek
seomind · 30 weeks and 6 days ago
This post is good enough to make somebody understand this amazing thing, and I’m sure everyone will appreciate this interesting things. Zonnepanelen installateur Herne
seomind · 30 weeks and 6 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. Zonnepanelen installateur Huldenberg
seomind · 30 weeks and 6 days ago
I have read your article; it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it. Zonnepanelen installateur Hoegaarden
seomind · 30 weeks and 6 days ago
Just pure brilliance from you here. I have never expected something less than this from you and you have not disappointed me at all. I suppose you will keep the quality work going on. Zonnepanelen installateur Kampenhout
seomind · 30 weeks and 6 days ago
Your music is amazing. You have some very talented artists. I wish you the best of success. Zonnepanelen installateur Hoeilaart
seomind · 30 weeks and 6 days ago
so happy to find good place to many here in the post, the writing is just great, thanks for the post. Zonnepanelen installateur Kapelle-op-den-Bos
seomind · 30 weeks and 6 days ago
It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. Zonnepanelen installateur Holsbeek
seomind · 30 weeks and 6 days ago
New site is solid. A debt of gratitude is in order for the colossal exertion. Zonnepanelen installateur Kortenaken
seomind · 30 weeks and 6 days ago
This post is good enough to make somebody understand this amazing thing, and I’m sure everyone will appreciate this interesting things. Zonnepanelen installateur Huldenberg
seomind · 30 weeks and 6 days ago
If your looking for Online Illinois license plate sticker renewals then you have need to come to the right place.We offer the fastest Illinois license plate sticker renewals in the state. Zonnepanelen installateur Kortenberg
seomind · 30 weeks and 6 days ago
I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page! Zonnepanelen installateur Kampenhout
seomind · 30 weeks and 6 days ago
It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it! Zonnepanelen installateur Kraainem
seomind · 30 weeks and 6 days ago
I found Hubwit as a transparent s ite, a social hub which is a conglomerate of Buyers and Sellers who are ready to offer online digital consultancy at decent cost. Zonnepanelen installateur Kapelle-op-den-Bos
seomind · 30 weeks and 6 days ago
With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money, Zonnepanelen installateur Landen
seomind · 30 weeks and 6 days ago
I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. Zonnepanelen installateur Keerbergen
seomind · 30 weeks and 6 days ago
I surely acquiring more difficulties from each surprisingly more little bit of it Zonnepanelen installateur Drogenbos
seomind · 30 weeks and 6 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale pug puppies indiana Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors!
rahimhh21 · 4 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: