Re: What's the use of "yes"?

From: Laurent Vogel (lREMOVEvCAPITALlLETTERS2_at_club-internet.fr)
Date: 04/17/04


Date: Sat, 17 Apr 2004 19:56:08 +0200


Steven Ding wrote:
> The utility "yes" always output "y" continuously when excuted without a
> parameter. What's the use of it?

I use it to create files with a certain number of identical lines:

  yes foo | head -20000

will create a file with 20000 lines containing text "foo"

Laurent



Relevant Pages

  • Re: C++ in the kernel
    ... private struct foo { ... for instance to cache a function pointer for lazy binding ... list_insert_before(elem, elem {,head ?}) ...
    (freebsd-arch)
  • Re: type secure CLOS?
    ... by returning the head of the original input list. ... weight slot has not been given a value. ... And the output of foo ... I am just surprised that you had so little idea how CLOS or even Lisp ...
    (comp.lang.lisp)
  • Re: special vars & functions
    ... How do I write a function foo so it works like this: ... (do ((head (cons nil list)) ... specialness of any variables: it just clobbers the input list ... then you can use SYMBOL-VALUE to alter it. ...
    (comp.lang.lisp)
  • Re: The python implementation of the "relationships between classes".
    ... In this example, Head and body are COMPOSITION, which means ... Body and Hat are aggregation, ... or there are no reachable references to it). ... bar = foo ...
    (comp.lang.python)
  • Re: Case-Insensitive Sorting of Multi-Dimensional Lists
    ... but I can not get my head around this lambda. ... written, without the lamda? ...
    (comp.lang.python)