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


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: sleep
Reference: set Book Index Reference: sleep

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