$* in bash scripting

后端 未结 8 1053
一整个雨季
一整个雨季 2021-01-17 16:33

Can anybody tell me what does $* mean in bash scripting?

I tried to search on google for it, but I found only about $0, $1 an

8条回答
  •  猫巷女王i
    2021-01-17 17:13

    It's a space separated string of all arguments. For example, if $1 is "hello" and $2 is "world", then $* is "hello world". (Unless $IFS is set; then it's an $IFS separated string.)

提交回复
热议问题