in reply to delete line from pattern matching
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.crontab
|
|---|