100 Useful Command-Line Utilities

by Oliver; 2014

68. yes

yes prints out the character y in an infinite loop (so be careful - you'll have to stop it with Cntrl-c). If you give yes an argument, it will print out the argument rather than y. For instance, to print the word oliver 30 times, the command would be:
$ yes oliver | head -30

<PREV   NEXT>