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


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: set Chapter 4
The Bourne Shell and Korn Shell
Next: Reference: stop
 

shift



shift

 [

n

]

Shift positional arguments (e.g., $2 becomes $1 ). If n is given, shift to the left n places. Used in while loops to iterate through command-line arguments. In the Korn shell, n can be an integer expression.


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

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