Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to copy the content of the file to clipboard in bash

xclip -sel c < input_file
Comment

bash copy contents of file to clipboard

# Basic syntax using pbcopy:
pbcopy < /path/to/file

# Paste with:
pbpaste > /path/to/output_file

# Note, you can filter what you paste with grep, e.g.:
pbpaste | grep 'useful text' > /path/to/output_file
Comment

PREVIOUS NEXT
Code Example
Shell :: grepcc coin 
Shell :: How to run a command within another command bash 
Shell :: bash alias function that accepts arguments 
Shell :: powershell delete folder contents 
Shell :: install safari in ubunut 
Shell :: docker run name 
Shell :: kali find devices on network 
Shell :: git display current head 
Shell :: how to remove a directory in git 
Shell :: bash print odd or even lines 
Shell :: how to check if a commit is in a branch 
Shell :: git push all tags 
Shell :: ng cli generate component 
Shell :: failed to open stream: Permission denied in path on mac 
Shell :: create a virtual environment python 3.8 
Shell :: remove old version of node and install new 
Shell :: run springboot as a service linux 
Shell :: kill port mac terminal 
Shell :: git checkout tag 
Shell :: install pytorch lightning 
Shell :: restart wsl 
Shell :: git get repo with composer 
Shell :: github readme stats 
Shell :: centos speedtest 
Shell :: ffmpeg cut video without re encoding 
Shell :: linux get user uid 
Shell :: kubeadm print join command 
Shell :: install opencv 
Shell :: install ionic 
Shell :: zsh for loop 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =