in a bash script I am implementing some functions, that take parameters
The problem is when the parameters instaed of being MONDAY is END OF THE WEEK
How can I pass this parameter to the function so the function
function week{
TIME=$1
}
takes a $TIME “END OF THE WEEK” and not just “END“?
You can use:
to get all of the parameters strung together, as in:
which produces (all four arguments used):
If you want to preserve white space. you can pass it as a quoted string.
which produces (from a single argument):