01-01基于SHELL的数据分析
Posted ParamousGIS
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了01-01基于SHELL的数据分析相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
for year in /root/Downloads/data/all/*
do
echo -ne `basename $year .gz`" "
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`" "
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
以上是关于01-01基于SHELL的数据分析的主要内容,如果未能解决你的问题,请参考以下文章
物联网基于OneNET和Siri快捷指令实现控制ESP8266-01S点亮LED灯和查询DHT11温湿度传感器数据