informatica:linux:clipboard
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | informatica:linux:clipboard [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | clipboard command line | ||
+ | Si queremos volcar el contenido de un archivo al cortapapeles desde la linea de comandos (y muchas otras cosas): | ||
+ | |||
+ | 1. Instalar: | ||
+ | |||
+ | sudo aptitude update; sudo aptitude install xclip | ||
+ | | ||
+ | 2. Crear el siguiente guion: | ||
+ | |||
+ | sudo vim / | ||
+ | | ||
+ | Con el siguiente contenido: | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | cat $1 | xclip -selection clipboard | ||
+ | </ | ||
+ | |||
+ | 3. Dar permisos: | ||
+ | |||
+ | sudo chmod +x / | ||
+ | | ||
+ | 4. Probar: | ||
+ | |||
+ | echo "Un lago blanco, un lago negro" > / | ||
+ | clipboard.sh / | ||
+ | | ||
+ | Si ahora hacemos boton derecho/ |
informatica/linux/clipboard.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1