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!
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