Lines starting with special characters

Hi

I have a file and need to extract lines starting with "[" but it gives me error when i try

grep ^"["  file
grep: Invalid regular expression

I tried with quotes single/double before/after but no luck.

suggestion pls, thanks!

Try:

grep '^\[' file

Refer: Character Classes and Bracket Expressions to understand why it failed.