Re: What's the use of "yes"?
From: Laurent Vogel (lREMOVEvCAPITALlLETTERS2_at_club-internet.fr)
Date: 04/17/04
- Next message: D. Alvarado: "How to parse command line parameters"
- Previous message: Alan Connor: "Re: incoming mail without information in the from, to, subject fields"
- In reply to: Steven Ding: "What's the use of "yes"?"
- Next in thread: Randal L. Schwartz: "Re: What's the use of "yes"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: D. Alvarado: "How to parse command line parameters"
- Previous message: Alan Connor: "Re: incoming mail without information in the from, to, subject fields"
- In reply to: Steven Ding: "What's the use of "yes"?"
- Next in thread: Randal L. Schwartz: "Re: What's the use of "yes"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|