On Wed, Nov 18, 2009 at 9:12 AM, Andrew Farnsworth <farn...@gmail.com> wrote:
> Not really all that useful, but worth knowing about...  please note that
> there is NOT a "no" command or a "maybe" command.
>
> Andy
>
> YES(1)                           User Commands
> YES(1)
>
> NAME
>        yes - output a string repeatedly until killed
>
> SYNOPSIS
>        yes [STRING]...
>        yes OPTION
>
> DESCRIPTION
>        Repeatedly output a line with all specified STRING(s), or `y'.
>
>        --help display this help and exit
>
>        --version
>               output version information and exit
>
> AUTHOR
>        Written by David MacKenzie.
>
> REPORTING BUGS
>        Report bugs to <bug-coreut...@gnu.org>.
>
> COPYRIGHT
>        Copyright © 2006 Free Software Foundation, Inc.
>        This  is  free  software.   You may redistribute copies of it under
> the
>        terms      of      the      GNU      General       Public
> License
>        <http://www.gnu.org/licenses/gpl.html>.   There  is NO WARRANTY, to
> the
>        extent permitted by law.
>
> SEE ALSO
>        The full documentation for yes is maintained as a Texinfo  manual.
> If
>        the info and yes programs are properly installed at your site, the
> com-
>        mand
>
>               info yes
>
> --
>


Does anybody have a real-life usage example?  I've seen this command
but never found anything for it to do.

Maybe generate a large text file?

$ time yes this is large > foo.txt
^C

real    0m0.988s
user    0m0.780s
sys     0m0.192s

$ wc -l foo.txt
5811053 foo.txt

$ ls -lh foo.txt
-rw-r--r-- 1 donalddelp donalddelp 78M 2009-11-18 10:20 foo.txt


Why do you need such a text file?  Maybe to test your compression
software on text with high redundancy?

--

You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-t...@googlegroups.com.
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=.


Reply via email to