summaryrefslogtreecommitdiff
path: root/archive/bin/rdate.py-dir
blob: 6862c3f3012b28506e1e3c38f01116c679a7edcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/pkg/bin/bash

shopt -s nullglob

for arg in $*
do
    if [ ! -d "$arg" ]
    then
	echo "only specify dirs on the cmd line please"
	exit 1
    fi
    find $arg -type f -name "*txt" -exec $HOME/bin/rdate.py '{}' \;
done