for file in `hadoop fs -ls hdfs://*/*/*|awk ‘{print $NF}‘` do echo $file hadoop fs -text $file |grep "7725400278767286400" >>log.txt done awk ‘{print $NF} 打印最后一列 是文件名
2024-01-07 15:22:58
for file in `hadoop fs -ls hdfs://*/*/*|awk ‘{print $NF}‘` do echo $file hadoop fs -text $file |grep "7725400278767286400" >>log.txt done awk ‘{print $NF} 打印最后一列 是文件名