Mercurial > dotfiles
view unixSoft/bin/tm-log @ 521:6cc5a0550281
tools: port hg utility scripts to python 3
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 14 Jul 2022 14:09:04 -0400 |
parents | 44f1d686dff1 |
children |
line wrap: on
line source
#!/bin/sh filter='processImagePath contains "backupd" and subsystem beginswith "com.apple.TimeMachine"' # show the last 12 hours start="$(date -j -v-12H +'%Y-%m-%d %H:%M:%S')" echo "" echo "[History (from $start)]" echo "" log show --style syslog --info --start "$start" --predicate "$filter" echo "" echo "[Following]" echo "" log stream --style syslog --info --predicate "$filter"