ups_exporter/script

49 lines
725 B
Text
Raw Normal View History

2019-07-24 14:08:26 +00:00
#Should do something like
cat myfile |while read file
do
echo $file |awk '/State/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Utility Voltage/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Battery Capacity/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Remaining Runtime/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Load/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Line Interaction/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Test Result/' myfile >> > awk
done
cat myfile |while read file
do
echo $file |awk '/Last Power Event/' myfile >> > awk
done