Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

@(1csh)

alias(1csh)

bg(1csh)

break(1csh)

cd(1csh)

chdir(1csh)

continue(1csh)

csh(1csh)

dirs(1csh)

echo(1csh)

eval(1csh)

exec(1csh)

exit(1csh)

fg(1csh)

glob(1csh)

goto(1csh)

hashstat(1csh)

history(1csh)

jobs(1csh)

kill(1csh)

limit(1csh)

logout(1csh)

nice(1csh)

nohup(1csh)

notify(1csh)

onintr(1csh)

popd(1csh)

pushd(1csh)

rehash(1csh)

set(1csh)

setenv(1csh)

sh(1sh)

shift(1csh)

source(1csh)

stop(1csh)

suspend(1csh)

time(1csh)

umask(1csh)

REPEAT(1CSH)

unhash(1csh)

unalias(1csh)

unlimit(1csh)

unset(1csh)

unsetenv(1csh)

wait(1csh)

which(1csh)

xargs(1)



REPEAT(1CSH)            COMMAND REFERENCE            REPEAT(1CSH)



NAME
     repeat - repeatedly execute command (csh built-in)

SYNOPSIS
     repeat count command [ args... ]

DESCRIPTION
     The repeat command executes the given command with its
     arguments count times.  The count must be an integer or a
     variable expansion which expands to a number.  The command
     must be a simple command, not an alias.  Redirection is done
     exactly once, even if count is 0.

EXAMPLES
     The following command line builds a file called `output'
     which consists of four copies of the contents of the file
     `input'.

          repeat 4 cat input > output

RETURN VALUE
     The return value is the return value of the last command
     executed, if the command is not found or an error occurred.

CAVEATS
     Quoted arguments containing the filename metacharacters `*',
     `?', and `[...]' do not work correctly, in that the
     metacharacters are expanded the second time through the
     loop.  For example, if the current directory contains the
     files `hello', `bye', and `seeya', the command:

          repeat 4 echo '*'

     results in the output:

          *
          bye hello seeya
          bye hello seeya
          bye hello seeya

     instead of four lines of the character `*'.

SEE ALSO
     @(1csh), alias(1csh), bg(1csh), break(1csh), cd(1csh),
     chdir(1csh), continue(1csh), csh(1csh), dirs(1csh),
     echo(1csh), eval(1csh), exec(1csh), exit(1csh), fg(1csh),
     glob(1csh), goto(1csh), hashstat(1csh), history(1csh),
     jobs(1csh), kill(1csh), limit(1csh), logout(1csh),
     nice(1csh), nohup(1csh), notify(1csh), onintr(1csh),
     popd(1csh), pushd(1csh), rehash(1csh), set(1csh),
     setenv(1csh), sh(1sh), shift(1csh), source(1csh),
     stop(1csh), suspend(1csh), time(1csh), umask(1csh),



Printed 4/6/89                                                  1





REPEAT(1CSH)            COMMAND REFERENCE            REPEAT(1CSH)



     unhash(1csh), unalias(1csh), unlimit(1csh), unset(1csh),
     unsetenv(1csh), wait(1csh), which(1csh), and xargs(1).





















































Printed 4/6/89                                                  2



%%index%%
na:360,132;
sy:492,220;
de:712,533;
ex:1245,268;
rv:1513,251;
ca:1764,578;
se:2342,1248;4022,324;
%%index%%000000000131

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026