Why is the shift command an important tool in LinuxUNIX 13So

Why is the shift command an important tool in Linux/UNIX?                                                                                                                                                                                               13

Solution

Yup, shift command is an important tool in Linux/UNIX not only because of it\'s use it for shifting purpose such as right shift or left shift or due to it\'s ability to perform arithmatic operations through shift command but mainly due to it\'s ability to provide access to various elements such as elements in array and It can also be used to loop through arguments.Shift can be applied to while,untill,and even for loops for handling arrays in much more subtle ways than can a simple for loop.

Example:

Why is the shift command an important tool in Linux/UNIX? 13SolutionYup, shift command is an important tool in Linux/UNIX not only because of it\'s use it for s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site