I have searched the line using following command:
grep -F "08 * * 3" abc.crontab | grep "abc.sql"I get the first line from file,I want to delete the exact matching line from abc.crontab
How about this:
perl -i -nle 'print if !(/08 [*] [*] 3/ and /abc.sql/)' abc.crontabIn reply to Re: delete line from pattern matching
by 7stud
in thread delete line from pattern matching
by anyera
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |