feature(user) Add legacy user scripts
[BK-2020-03.git] / user / bkidle
... / ...
CommitLineData
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
10TARGET_DIR="$1"
11
12while true;
13do
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;
17done