I have following string in a multi-line file
.....<other lines>
-classpath "${ROOT}/abcjars/*:${ROOT}/lib/*" \
.....<otherlines>
I want to check if classpath line is present in file or not
If I try following grep command it works properly,
grep '\-classpath \"${ROOT}/abcjars/*' $File
But if I add colon (:) in search pattern it doesn't work
grep '\-classpath \"${ROOT}/abcjars/*:' $File
I want to grep and check if entire line is present or not. Is it possible?
Thanks