1 #!/bin/bash
2 a=`pwd`
3 echo a=$a
4 b=${a##*/}
5 echo b=$b
1 #!/bin/bash
2 arr=(`ls *.sh`)
3 echo arr=${arr[*]} len=${#arr[*]}
1 #!/bin/bash
2 a=`pwd`
3 echo a=$a
4 b=${a##*/}
5 echo b=$b
1 #!/bin/bash
2 arr=(`ls *.sh`)
3 echo arr=${arr[*]} len=${#arr[*]}