i tried come usage grens come match a pattern ~ above the terminal, yet no any type of outcome comes out.

You are watching: Grep: warning: recursive search of stdin

$ grep -R "networks"grep: warning: recursi have find that stdini knew grep ~ above macOns ins based upon BSD when grens on Ubuntu is based on GNU.

how to do "grep" work top top macOs choose in Ubuntu?



once ns -R option ins used, MacOns grep calls for girlfriend to clearly offer it a magazine to search; because that example, specify . Come recursively search the existing directory:

grep -R "networks" .


long term, it"s probably finest come install the tools based upon GNU or run Ubuntu virtually. Both to be obtainable because that free.

brew instevery coreutils (to operation ns brew command you have to instevery homebrew indigenous https://brew.sh) will certainly Put the GNU version of the devices in her path. Look for the ggrens command and possibly a standalone grens packAge come instevery as ns coreutils doens tend come change With time what it includes.

See more: Error Expected Declaration Or Statement At End Of Input In C

(EDIT: Note the together that 2018, grens particularly requirements to be set up individually indigenous coreutilns together follows:

$ brew instevery grep$ ggrens sometext file.txns # Keep in mind the executable ins dubbed ggrens via two G"sand has actually a unique executable name ggrep through two G"s.)

additionally searching below because that GNU or coreutilns will be helpful because that conmessage and also tips/tricks.


Shto be
boost this answer
Follow
edited Sens 5 "18 at 19:12

jauns
12.6k33 yellow badges4848 silver- badges6767 bronze badges
answered Mar 6 "17 at 11:38

bmike♦bmike
211k7373 yellow badges376376 silver badges809809 copper badges
3
add a comment |

you should log in to price this question.

no the price you're lookinns for? browse various other concerns tagged terminatogether find compatibility .


the Overcirculation Blog
Featured on Meta
Linked
29
just how come have GNU's date in Ons X?
17
make lns command type through Data kind (e.g. Directoriens and also Documents extension)
13
Is it possible to get ns full suite of unix options for the command also heat devices ~ above Os X?
3
Rerelocating the builbelieve command-line utilitiens from PATH, zsh
associated
2
curl command also can't be found, OSX utilitiens have to be replaced through GNU coreutils... How to begin indigenous scratch?
1
exactly how to have "say" wait once used in a series of pipes?
10
Why Mac Terminal rememberns 2 consecuti have regulates when castle to be same?
4
just how to create a AliSimilar to a change inside?
2
just how have the right to ns search 360,000 files, about 280 GB?
0
i acquire a error sed: 1: "1~2d": invalid command also code ~ once ns use sed '1~2d' sample.txns
2
how come integrate two windows together one in Terminal?
1
just how to transform ping command also to string on MacOs Terminal
warm Network-related inquiries more hot inquiries

Question feed
subscribe come RSns
Concern feeding to i ordered it to this RSns feed, copy and dough this URl right into her RSns reader.



lang-sh
questioning different
firm
ridge Exadjust Network-related
website design / logo design © 2021 stack Exchange Inc; user contribution a license is granted under cc by-sa. Rev2021.11.18.40788


to apologize is a trademark that to apologize Inc., registered in ns Us and also various other countries. This site is not affiliated via or endorsed through startupcuba.org Inc. In any type of way.
questioning different functions ideal through Javascript allowed
*

her privacy

by clicking “accept all cookies”, girlfriend agree stack Exadjust can save cookie top top her device and also discshed indevelopment in accordance through ours Cookie Policy.