diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
| commit | 711594636704defae873be1a355a292505585afd (patch) | |
| tree | 59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man1/shift.1 | |
| parent | 3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff) | |
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man1/shift.1')
| -rw-r--r-- | static/v10/man1/shift.1 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/static/v10/man1/shift.1 b/static/v10/man1/shift.1 new file mode 100644 index 00000000..fbf2e145 --- /dev/null +++ b/static/v10/man1/shift.1 @@ -0,0 +1,38 @@ +.th SHIFT I 8/21/73 +.sh NAME +shift \*- adjust Shell arguments +.sh SYNOPSIS +.bd shift +.sh DESCRIPTION +.it Shift +is used in Shell command files to shift the +argument list left by 1, +so that old +.bd $2 +can now be referred to by +.bd $1 +and so forth. +.it Shift +is useful to iterate over several arguments +to a command file. +For example, the command file +.s3 +.lp +5 0 +: loop +.br +if $1x = x exit +.br +pr \*-3 $1 +.br +shift +.br +goto loop +.s3 +.i0 +prints each of its arguments in 3-column format. +.s3 +.it Shift +is executed within the Shell. +.sh "SEE ALSO" +sh (I) +.sh BUGS |
