diff options
author | typebrook <typebrook@gmail.com> | 2019-12-09 11:14:51 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-09 11:14:51 +0800 |
commit | f3edd1a22f1383b3d370f61a29a315630c96bfe0 (patch) | |
tree | 426b304b53e562e3d9b342909cfdac1bed84904d /scripts/refresh-todo.sh | |
parent | e9c7bb34bd9778deebf3540640dc155c041840dd (diff) |
update
Diffstat (limited to 'scripts/refresh-todo.sh')
-rwxr-xr-x | scripts/refresh-todo.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/refresh-todo.sh b/scripts/refresh-todo.sh new file mode 100755 index 0000000..a5f0bb2 --- /dev/null +++ b/scripts/refresh-todo.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # $1 as file, $2 as topic (Daily, Weekly, Monthly) | ||
4 | # change markdown check-list to empty | ||
5 | sed -i "/## $2/,/^$/ s/\[.\]/\[ \]/" $1 | ||