Open wangming1993 opened 8 years ago
shift
#!/bin/bash cmd=$1 #Get first char of the first arg cmd=${cmd:0:1} #Remove first arg from args shift if [ $cmd == 'l' ];then local $@ else remote $@ fi
shift
移除第一个元素