Comment by internet_points
1 year ago
With `xsel --clipboard` (put that in an alias like `clip`), you can use the same thing to replace both `copy` and `pasta`:
# High level examples
run_some_command | clip
clip > file_from_my_clipboard.txt
# Copy a file's contents
clip < file.txt
# indent for markdown:
$ clip|sed 's/^/ /'|clip