Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get fully working grep in git bash (msysgit) on windows?

Tags:

grep

git-bash

I would like to use grep -o, but in git bash there is no -o option. Is there a way to get full working grep in git bash, just like it's in linux bash shell?

like image 779
siulkilulki Avatar asked Nov 09 '22 23:11

siulkilulki


1 Answers

There is no -o flag for grep http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html

You can use sed instead

like image 86
Prateek Batla Avatar answered Dec 31 '22 10:12

Prateek Batla