mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
Add Copying File Contents To System Paste Buffer as a unix til.
This commit is contained in:
@@ -232,6 +232,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
||||
- [Change Default Shell For A User](unix/change-default-shell-for-a-user.md)
|
||||
- [Check If A Port Is In Use](unix/check-if-a-port-is-in-use.md)
|
||||
- [Clear The Screen](unix/clear-the-screen.md)
|
||||
- [Copying File Contents To System Paste Buffer](unix/copying-file-contents-to-system-paste-buffer.md)
|
||||
- [Create A File Descriptor with Process Substitution](unix/create-a-file-descriptor-with-process-substitution.md)
|
||||
- [Do Not Overwrite Existing Files](unix/do-not-overwrite-existing-files.md)
|
||||
- [File Type Info With File](unix/file-type-info-with-file.md)
|
||||
|
||||
10
unix/copying-file-contents-to-system-paste-buffer.md
Normal file
10
unix/copying-file-contents-to-system-paste-buffer.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copying File Contents To System Paste Buffer
|
||||
|
||||
If you need to copy and paste the contents of a file, the `pbcopy` command
|
||||
can be one of the best ways to accomplish this. Simply `cat` the file and
|
||||
pipe that into `pbcopy` to get the contents of the file into the system
|
||||
paste buffer.
|
||||
|
||||
```
|
||||
$ cat some-file.txt | pbcopy
|
||||
```
|
||||
Reference in New Issue
Block a user