root/bin/import_date @ 6970
1 |
#!/bin/sh
|
---|---|
2 |
# Gets the date of an import based on its log files' mtimes
|
3 |
|
4 |
selfDir="$(dirname -- "$0")" |
5 |
|
6 |
if ! test "$#" -ge 1; then |
7 |
echo "Usage: self logs..."|fold -s >&2 |
8 |
exit 2
|
9 |
fi
|
10 |
|
11 |
for log in "$@"; do |
12 |
"$selfDir/mtime" "$log" |
13 |
break # only for first log file |
14 |
done
|