Copy output of a command to clipboard

🏷️ Software development

sudo apt-get install xclip
cat file | xclip -selection clipboard