Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: