在shell 中字符串,文件,数字的比较


hadoop fs -test -e /path/exist if [ $? -eq 0 ] ;then echo 'exist' else echo 'Error! path is not exist' fi

 

 

在shell中如何判断HDFS中的文件目录是否存在

posted @ 2017-08-24 19:19  牵牛花  阅读(281)  评论(0)    收藏  举报