home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


repeat n command

Execute n instances of command .


Generate a test file for a program by saving 25 copies of /usr/dict/words in a file:

% repeat 25 cat /usr/dict/words > test_file

Read 10 lines from the terminal and store in item_list :

% repeat 10 line > item_list

Append 50 boilerplate files to report :

% repeat 50 cat template >> report

Previous: Reference: rehash UNIX in a Nutshell: System V Edition Next: Reference: set
Reference: rehash Book Index Reference: set

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System