File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
232
232
- [ Change Default Shell For A User] ( unix/change-default-shell-for-a-user.md )
233
233
- [ Check If A Port Is In Use] ( unix/check-if-a-port-is-in-use.md )
234
234
- [ Clear The Screen] ( unix/clear-the-screen.md )
235
+ - [ Copying File Contents To System Paste Buffer] ( unix/copying-file-contents-to-system-paste-buffer.md )
235
236
- [ Create A File Descriptor with Process Substitution] ( unix/create-a-file-descriptor-with-process-substitution.md )
236
237
- [ Do Not Overwrite Existing Files] ( unix/do-not-overwrite-existing-files.md )
237
238
- [ File Type Info With File] ( unix/file-type-info-with-file.md )
Original file line number Diff line number Diff line change
1
+ # Copying File Contents To System Paste Buffer
2
+
3
+ If you need to copy and paste the contents of a file, the ` pbcopy ` command
4
+ can be one of the best ways to accomplish this. Simply ` cat ` the file and
5
+ pipe that into ` pbcopy ` to get the contents of the file into the system
6
+ paste buffer.
7
+
8
+ ```
9
+ $ cat some-file.txt | pbcopy
10
+ ```
You can’t perform that action at this time.
0 commit comments