1. 程式人生 > >linux 特殊環境變數

linux 特殊環境變數

$ 相關的變數

這裡寫圖片描述

這裡寫圖片描述

root@iZbp152coo41my4pjzp4smZ:~# set -- "I am" handsome oldboy.
root@iZbp152coo41my4pjzp4smZ:~# echo $#
3
root@iZbp152coo41my4pjzp4smZ:~# for i in $*; do echo $i; done

root@iZbp152coo41my4pjzp4smZ:~# for i in [email protected]; do echo $i; done
I
am
handsome
oldboy.

root@iZbp152coo41my4pjzp4smZ
:~# for i in "$*"; do echo $i; done I am handsome oldboy. root@iZbp152coo41my4pjzp4smZ:~# for i in "[email protected]"; do echo $i;done I am handsome oldboy.