T: Filenames are now ISO8601.
This commit is contained in:
parent
fae4dfb581
commit
0a9b2b3503
4
T/T
4
T/T
|
@ -153,7 +153,7 @@ if echo $1 | egrep '^-[0-9]+$' >/dev/null; then
|
||||||
T_NO_SLASH=$(echo $1 | sed -e 's:/:__:g')
|
T_NO_SLASH=$(echo $1 | sed -e 's:/:__:g')
|
||||||
fi
|
fi
|
||||||
T_TEMPFIL=$T_DIR/$T_NO_SLASH
|
T_TEMPFIL=$T_DIR/$T_NO_SLASH
|
||||||
T_BACK_FILENAME=$(find $T_DIR -name "$T_NO_SLASH"-'[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].[0-9][0-9]:[0-9][0-9]:[0-9][0-9]-[0-9]*' \
|
T_BACK_FILENAME=$(find $T_DIR -name "$T_NO_SLASH"-'[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]?[0-9][0-9]:[0-9][0-9]:[0-9][0-9]-[0-9]*' \
|
||||||
| sort | tail -n $T_BACK_NO | head -n 1)
|
| sort | tail -n $T_BACK_NO | head -n 1)
|
||||||
if [ -z "$T_BACK_FILENAME" ]; then
|
if [ -z "$T_BACK_FILENAME" ]; then
|
||||||
T_TEMPFIL=$T_DIR/$T_NO_SLASH
|
T_TEMPFIL=$T_DIR/$T_NO_SLASH
|
||||||
|
@ -172,7 +172,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
T_NY_FIL="$T_TEMPFIL"-`date +"%Y-%m-%d.%H:%M:%S"`-$$
|
T_NY_FIL="$T_TEMPFIL"-`date +"%Y-%m-%dT%H:%M:%S"`-$$
|
||||||
|
|
||||||
mkdir $T_DIR 2>/dev/null
|
mkdir $T_DIR 2>/dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue