projects
/
zc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new sensors
[zc]
/
last-heartbeat.sh
1
#!/bin/sh
2
3
ls -d queue/*/$( date +%Y-%m-%d ) | while read path ; do
4
last=$( ls -t $path | head -1 )
5
if [ ! -z "$1" ] ; then
6
imei=$( echo $path | cut -d/ -f2 )
7
echo -n "$path/$last "
8
grep $imei subvision-numbers.txt || echo
9
else
10
echo "$path/$last"
11
fi
12
done
13