I'm trying to delete a string from a file using the follow sed command:
pattern="$name;$date;$hour"
sed -i.bak "/${pattern}/I d" $BOOKFILE
But the problem is that: On OS X – sed does NOT support case-insensitive matching
I need to delete a string from a file using insensitive case. For example if I insert "a;20161010;11" instead of "A;20161010;11" it must recognize and delete the same string from file.
I can't use script in other languages as perl or TCL etc...