Replace part of line
* * * * * on
*/15 * * * * (yes, this is cron - so that bad users do not launch too often).
The first value assigned to the variable abuse, the second variable of the norms.
But no matter how I fought, I don’t get an exact line match.
I tried:
abuse="\* \* \* \* \*" abuse2='\* \* \* \* \*' abuse3='* * * * *' abuse4="* * * * *" The first two examples give the string in this form, i.e. with escaping characters, the second two give a list of all file folders.
Respectively and
find -type f -exec sed -i /var/spool/cron/ 's/$ABUSE/$NORM/g' {} \; not working, giving out
extra characters after command
Tell me the solution, please.