path=/abc/bdc/dsa/gafasd/casdf 计算字符'/'个数
echo -n $path | tr '/' ' ' | wc -l
echo -n $path | sed "s/[^/]//g" | wc -c
echo "scale=10;98512/258322" | bc