标签:gunzip env 数据 load bst basename print roo 分析
#!/usr/bin/env bash
for year in /root/Downloads/data/all/*
do
echo -ne `basename $year .gz`"\t"
gunzip -c $year | \
awk ‘{ temp = substr($0, 88, 5) + 0;
q = substr($0, 93, 1);
if (temp != 9999 && q ~ /[01459]/ && temp > max) max = temp }
END { print max }`
done
#!/usr/bin/env bash
for year in all/*
do
echo -ne `basename $year .gz`"\t"
gunzip -c $year | \
awk ‘{ temp = substr($0, 88, 5) + 0;
q = substr($0, 93, 1);
if (temp !=9999 && q ~ /[01459]/ && temp > max) max = temp }
END { print max }‘
done
标签:gunzip env 数据 load bst basename print roo 分析
原文地址:https://www.cnblogs.com/gispathfinder/p/9270876.html