cronon 224 B

123456789
  1. #!/bin/bash
  2. set -e
  3. set -u
  4. set -o pipefail
  5. crontab -l | awk '/#BETWEEN#/ {flag=1;print;next} /#HERE#/ {flag=0} flag {if ($0 ~ /^#/) print substr($0, 3); else print $0 } !flag {print}' | crontab -
  6. crontab -l > ~/crontab.out