Kim Thu Đoàn
New member
What is shift command in shell script?
Answer
Shift is a builtin command in bash which after getting executed, shifts/move the command line arguments to one position left. … This command takes only one integer as an argument. This command is useful when you want to get rid of the command line arguments which are not needed after parsing them.
Answer
Shift is a builtin command in bash which after getting executed, shifts/move the command line arguments to one position left. … This command takes only one integer as an argument. This command is useful when you want to get rid of the command line arguments which are not needed after parsing them.