get path
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
#!/bin/bash # Usage: # spwd will get the path for ./ , printed in ssh remote path format # spwd PATH/FILE LIST will get the path for each path or file , printed in ssh remote path formatNAMELOST="" if [ $# -eq 0 ]; thenNAMELIST="./" elseNAMELIST=$@ fi PROFILE=`whoami`@`host \`hostname\` | awk '{print $NF}'` for NAME in $NAMELIST; doecho $PROFILE":"`readlink -f $NAME` done
轉(zhuǎn)載于:https://my.oschina.net/u/575122/blog/146749
總結(jié)
- 上一篇: C[泊车管理系统]
- 下一篇: 简述java异常处理机制