find . -name example >> test.js
The above example is output to a file.
So what should I do if I export it to the cut version?
仅有的幸福2017-05-16 16:37:42
The command to operate the clipboard on the mac command line is pbcopy. This command copies the contents of the standard input to the clipboard, so that you can paste it directly using command-v.
find . -name test.js | pbcopy
给我你的怀抱2017-05-16 16:37:42
There is no need to exit vim at all, just enter vim directly; then enter the command: r ![cmd] ->Insert the execution result of the command at the current position
[cmd] is the command you want to enter ([] do not enter it , this is just for marking)