There's a part of my script where i need to find line number of first match in file, i use:
local lineNum=$(grep -m 1 -n "$search" "$filePath" | head -1 | cut -d : -f1)
Problem is that if $search is something like Name[cs_CZ]=, then it fails and find nothing, most likely it's some parsing trickery about [ ], everything else is succesfull on getting lineNum...
Any ideas?