orig_args=$* echo There are $# command line arguments echo They are $* echo Shifting two arguments shift 2 echo There are $# command line arguments echo they are $* echo Shifting two arguments shift 2; final_args=$* echo Original arguments are $orig_args echo Final arguments are : $final_args