updated hdfs_find_replication_factor_1.sh

pull/2/head
Hari Sekhon 5 years ago
parent c595a8520e
commit 1d18cfdded

@ -56,7 +56,6 @@ skip_zero_byte_files(){
hdfs dfs -ls -R "$@" |
grep -v '^d' |
awk '{ if($2=1) print }' |
skip_zero_byte_files |
awk '{ $1=$2=$3=$4=$5=$6=$7=""; print }' |
awk '{ if($2=1) { $1=$2=$3=$4=$5=$6=$7=""; print } }' |
sed 's/^[[:space:]]*//'

Loading…
Cancel
Save