#!/bin/bash
#                      /usr/local/bin/chrontouch.blue
# http://crystalfaeries.net/posix/bin/chrontouch.blue
# celeste:crystalfaery CHRONTOUCH 2017-04-17 04:20:35+00:00
# This is our todo touch script in support of blog edit script

# go to the blog source directory where we edit
cd /home1/divservi/public_html/crystalfaeries-net/src		|| exit -1				>> ~/.chronicle.log 2>&1
chmod o-rwx .	# while we are here, make sure permissions are correct

# touch to-do files (hidden .??* files) in size order
find  . -name '.??*' \! -name '.201[0-9]-*' -size 0	-exec rm {} \;	# delete empty files
for f in $(du -s .??* | sort -n | cut -f2-)
do
	touch $f
	sleep 61	# in case user standard ls display does not include seconds of time
done										>> ~/.chronicle.log 2>&1
# now user will find largest todo file as most recent todo file

touch ~/bin/.??* # and finally, prioritize scripting TODOs


syntax highlighted by Code2HTML, v. 0.9.1