Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mollis consequat mattis. Aliquam laoreet sem semper dolor hendrerit tempus. Pellentesque convallis porta consectetur. Aliquam erat volutpat. Pellentesque vel purus lorem. Aliquam erat volutpat. Sed eget dui eu ligula aliquam commodo. Pellentesque ac risus urna. Mauris imperdiet porttitor tempor. Integer lacinia imperdiet neque, nec fermentum nisi pretium facilisis. Morbi tempor tincidunt pellentesque. Phasellus ante elit, interdum ut euismod sit amet, sollicitudin vel est. Cras et quam nibh, id ultricies odio. Morbi turpis velit, semper non laoreet vel, fringilla sed diam. Proin vel diam diam, eget auctor ipsum. Morbi est diam, vehicula a vulputate in, pretium quis nisi. Aliquam blandit odio et diam interdum euismod. Ut mattis pretium diam sed dictum. Curabitur adipiscing libero tellus. Vivamus elementum purus a dui pulvinar at tincidunt urna consequat. Aenean blandit magna eget ligula pellentesque at bibendum arcu gravida. Donec quis velit in dolor convallis viverra. Maecenas accumsan, tortor eu dictum rhoncus, erat est eleifend quam, non aliquam diam ante a risus. Aenean tristique porta viverra. Nam ullamcorper viverra eros, vestibulum facilisis sapien pretium ut. Nunc urna augue, semper sit amet posuere et, ultrices ac ante. Quisque sed tellus orci, quis lacinia orci. Maecenas dui nulla, ornare vitae tristique ut, condimentum a massa. Donec gravida, dolor sed pulvinar egestas, massa ante dapibus lectus, non molestie enim libero vitae elit
This fixes the extra lines you get when you request only 1 paragraph using a little bit of grep. Just set p to the number of paragraphs you want. Show Sample Output
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.
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.
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
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: