在shell 中字符串,文件,数字的比较
hadoop fs -test -e /path/exist if [ $? -eq 0 ] ;then echo 'exist' else echo 'Error! path is not exist' fi
在shell中如何判断HDFS中的文件目录是否存在
学好计算机,走遍天下都不怕
hadoop fs -test -e /path/exist if [ $? -eq 0 ] ;then echo 'exist' else echo 'Error! path is not exist' fi