AdRule/clean-versions.sh

7 lines
260 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
time=$(TZ=UTC-8 date +'%Y-%m-%d %H:%M')
date=$(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')
sed -i "s/! Version:.*/! Version: $time /g" rules-admin.txt url-filter.txt
sed -i "s/! Last Update:.*/! Last Update: $date /g" rules-admin.txt url-filter.txt
exit