In the terminal, output the command result to the cut version (you can paste it directly)

  question, vim
find . -name example >> test.js

The above example is output to a file.

So what should I do if I export to the cut version?

The command to operate the clipboard under the mac command line is pbcopy. this command copies the standard input into the clipboard, so you can paste it directly using command-v.

find . -name test.js | pbcopy