projects
/
BK-2020-03.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
feature(user) Add legacy user scripts
[BK-2020-03.git]
/
user
/
bkidle
1
#!/bin/bash
2
3
# Date: 2020-03-09T04:51Z
4
5
# Description: A bash script showing recent edits to a given
6
# directory.
7
8
# Usage: bkidle [dir]
9
10
TARGET_DIR
=
"
$1
"
11
12
while
true
;
13
do
14
find
"
$1
"
-readable -mmin -1 -type
f
-exec
b2sum
-l
32
'{}'
\
;;
15
echo
"$(date +%Y%m%dT%H%M%S.%N%z)========"
;
16
sleep
60
;
17
done