oh-my-zsh
| 1 | echo $SHELL | 
macOS
sed -i 报错
mac自带的sed和linux表现不一致, 需要安装gnu-sed
macOS is a Unix, and not built on Linux. This can bite you when trying to write scripts which support both platforms.
| 1 | brew install gnu-sed # gsed | 
| 1 | for i in `ls` | 
oh-my-zsh
| 1 | echo $SHELL | 
macOS
sed -i 报错
mac自带的sed和linux表现不一致, 需要安装gnu-sed
macOS is a Unix, and not built on Linux. This can bite you when trying to write scripts which support both platforms.
| 1 | brew install gnu-sed # gsed | 
| 1 | for i in `ls` |