projects
/
pubbin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
101851d
)
cleanup-timesamples: only purge null / sort this host's entries
author
Dan White
<dan@whiteaudio.com>
Thu, 11 Jun 2015 17:09:26 +0000
(12:09 -0500)
committer
Dan White
<dan@whiteaudio.com>
Thu, 11 Jun 2015 17:09:26 +0000
(12:09 -0500)
cleanup-timesamples
patch
|
blob
|
history
diff --git
a/cleanup-timesamples
b/cleanup-timesamples
index cf85c960525d154bf6a4985c8c891dd73796fd97..364efca986d4893a14a51f34cfb1df381b071bf9 100755
(executable)
--- a/
cleanup-timesamples
+++ b/
cleanup-timesamples
@@
-24,11
+24,10
@@
vim $SAMPLES
if [ "$1" = "-c" ]; then
- echo "Cleaning and sorting all timeSamples."
- for f in $(ls -1 $HOME/.timeSampler.*); do
- grep -v "null$" $f | sort -u > $f.tmp
- cp $f.tmp $f
- done
+ echo "Cleaning and sorting timeSamples from this host ($HOSTNAME)."
+
+ grep -v "null$" "$HOME/.timeSampler.$HOSTNAME" | sort -u > $f.tmp
+ cp $f.tmp $f
fi