I usually come here if google does not work. So, this time it happens as follows: In the function, I want to assign a variable from the 4th input parameter forward. Example:
function foo {
var="$4$5$6..."
use var
commands using $1, etc
}
So I think I can’t use shift, since I want to use $ 1 after that. I do not want to use extra var to store $ 1, $ 2, $ 3 and shift. So how should this work?
source
share