#!/bin/bash
# /usr/local/bin/synctxt
# http://crystalfaeries.net/posix/bin/synctxt
# celeste:crystalfaery SYNCTXT 2017-02-06 00:42:05+00:00
# We convert txt files into todo items in the src directory
# Starting Up:
echo "`/usr/local/bin/now` ======= $0 ======= $1 =======" && exitval=0 || exitval=$?
pushd ~/txt || exit $?
cd -P . || exit $?
name_tidy || exit $?
for f in *.txt;do
rsync -auvzH "$f" /home/crystalfaeries.net/src/."$f" && rm "$f" || echo $?
done
popd
# Pau for Now.
echo "`/usr/local/bin/now` ------- $0 ------- $1 -------" || exitval=$?
exit $exitval
syntax highlighted by Code2HTML, v. 0.9.1