Re: print N times

"Thierry Blanc [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 05/07/15 21:16, Scott Walters [email protected] [sed-users]
wrote:
> Hello,
> A  theoretical question.echo  abcd |  sed 'p;p;p'      prints the word "abcd" 4 times.Is there a simpler way to print a word N times ( N=large number) by NOT using the "p" command N-1 times.it has to be simple like we use in a regular for loop.
> thanksScott W
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
> Posted by: Scott Walters <[email protected]>
> ------------------------------------
>
yes!
and yes is the answer ;)

yes abcd| head -n 4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.