Copy, paste and move files from command line for macOS. For example, you can put some files to
pasteboard by pbcopyf
and use ⌘+V in Finder to paste it. Basically:
⌘C = pbcopyf
⌘V = pbpastef
⌥⌘V = pbmovef
pbcopy
and pbpaste
can only handle text, not files. Hence these tools.
NOTICE: these tools haven't gone through extensive tests, so don't use them on important files!
Grab the binaries from here
Clone the repository, open with Xcode, select each target and build them. I think you need to configure the signature before building.
Pasteboard copy file: put files into the pasteboard.
Usage:
pbcopyf [options] <files ...>
Options:
-h --help Show this message
Pasteboard paste file: paste files in the pasteboard to target directory.
Usage:
pbpastef [options] <target directory>
Options:
-h --help Show this message
-f --force force overwrite files that exists
Pasteboard move file: move files in the pasteboard to target directory.
Usage:
pbmovef [options] <target directory>
Options:
-h --help Show this message
-f --force force overwrite files that exists