Modify the bash script so that after checking the type of the entity, it also lists the details of the input entity

前端 未结 0 491
自闭症患者
自闭症患者 2021-01-16 06:19
PASSED=$1

if [ -f $PASSED ]; then
        echo "$PASSED is a file"
        ls -l $PASSED
elif [ -d $PASSED ]; then
        echo "$PASSED is a directo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题