Skip to content

Commit cd6a63d

Browse files
committed
Add Copying File Contents To System Paste Buffer as a unix til.
1 parent f9ee595 commit cd6a63d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
232232
- [Change Default Shell For A User](unix/change-default-shell-for-a-user.md)
233233
- [Check If A Port Is In Use](unix/check-if-a-port-is-in-use.md)
234234
- [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)
235236
- [Create A File Descriptor with Process Substitution](unix/create-a-file-descriptor-with-process-substitution.md)
236237
- [Do Not Overwrite Existing Files](unix/do-not-overwrite-existing-files.md)
237238
- [File Type Info With File](unix/file-type-info-with-file.md)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
```

0 commit comments

Comments
 (0)