Commit 84b08b0f authored by Joerg Jaspert's avatar Joerg Jaspert 🇩🇪

Commit cronoff/cronon to git

parent 4616376f
#!/bin/bash
set -e
set -u
set -E
set -o pipefail
crontab -l | awk '/#BETWEEN#/ {flag=1;print;next} /#HERE#/{flag=0} flag {print "# " $0 } !flag {print}' | crontab -
echo "### Turned off on $(date -Is)" > ~/crontab.out
crontab -l >> ~/crontab.out
#!/bin/bash
set -e
set -u
set -o pipefail
crontab -l | awk '/#BETWEEN#/ {flag=1;print;next} /#HERE#/ {flag=0} flag {if ($0 ~ /^#/) print substr($0, 3); else print $0 } !flag {print}' | crontab -
crontab -l > ~/crontab.out
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment