#!/bin/bash
# http://crystalfaeries.net/posix/bin/syncaccounts
# celeste:crystalfaery 2013-01-19 17:42:52+00:00
let result=0 # success
echo "`now` ======= $0 ======= $0 =======" || let result=1 # counting forwards from beginning of file
# Named syncaccounts to occurr before syncs with other machines
# Locally clone a portion of ministry records for specific individuals.
for transaction in statement payment clockin
do
for individual in $(cat $HOME/ministry/laara_allbrett/authorized.txt)
do
mv $HOME/ministry/"$transaction".*."$individual".txt $HOME/ministry/laara_allbrett/history/
done
done
echo "`now` ------- $0 ------- $0 -------" || let result=255 # counting backwards from end of file
exit $result
syntax highlighted by Code2HTML, v. 0.9.1