Couldn't find program >> on Mac

I want to find the program "→" that you add to the file.

I am unsuccessfully running the code on Mac

find . -print0 | xargs -0 grep " >> "

      

I am getting too many results to find the correct application. The program is not included with other teletypes in / bin.

How can you find the program "→"?

0


a source to share


4 answers


There is no program called "→" - it's just part of the shell syntax.



+6


a source


This is a shell operator, not a program at all.



Read the code for bash

. Or find a simpler implementation of Shell Bourne. There should be several on the internet. Here is one http://heirloom.sourceforge.net/sh.html .

+2


a source


It is not a program, it is a shell. Try it man bash

.

+2


a source


As mentioned, this is just part of the syntax. Like + and - are part of the mathematical syntax. If you want to overwrite the file use single> to add double use ->. It works both ways. So if you want to use a file as input, just use <. Each line of the file will be passed to the command. command <file.txt

+1


a source







All Articles