cp-tls-inspection-applicati.../remove-autogen-crons.sh
Eliezer Croitoru 9c9f7f373e 41
2021-07-19 14:02:36 +03:00

6 lines
331 B
Bash
Executable File

#!/usr/bin/env bash
CRON_FILE="/pfrm2.0/etc/crontabs/root"
sed -i -n '/^####### NFGW Auto Genereated CRONS START MARK/{p; :a; N; /####### NFGW Auto Genereated CRONS END MARK/!ba; s/.*\n//}; p' |sed -e "s@^####### NFGW Auto Genereated CRONS START MARK.*@@g" -e "s@^####### NFGW Auto Genereated CRONS END MARK.*@@g" "${CRON_FILE}"