sed -i \'/first/i This line to be added\'
In this case,how to ignore case while searching for pattern =first
Use the following, \b for word boundary
sed 's/\bfirst\b/This line to be added/Ig' file