Results 1 to 5 of 5

Thread: clipboard in command line

Hybrid View

  1. #1
    Join Date
    May 2007
    Location
    Crete, Greece
    Beans
    582

    clipboard in command line

    Hello,

    I was wondering if there is a way to direct something from/to the clipboard from command line.

    For example, do something like:
    Code:
    cat mylongfile.txt > <clipboard>
    Any ideas?

    Thanks in advance

  2. #2
    Join Date
    Apr 2006
    Location
    Fresno CA
    Beans
    2,790
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: clipboard in command line

    I don't know of one but copy and paste do work in the terminal. Select as you normaly would and <shift><Ctrl>C or <shift><Ctrl>V.
    Thank a veteran -- George 8)
    Internet Coach & Writer
    Personal Blog -- 3 Joes' Blog

  3. #3
    Join Date
    Oct 2005
    Location
    De Kwakel - Holland
    Beans
    3,657

    Re: clipboard in command line

    Install xclip..
    Code:
    sudo apt-get install xclip
    Code:
    xclip < mylongfile.txt
    or
    Code:
    cat mylongfile.txt | xclip
    Edit: Some more info on xclip
    Last edited by kellemes; February 22nd, 2009 at 10:37 PM.

  4. #4
    Join Date
    Apr 2006
    Location
    Fresno CA
    Beans
    2,790
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: clipboard in command line

    Thanks -- xclip will be handy to have around.
    Thank a veteran -- George 8)
    Internet Coach & Writer
    Personal Blog -- 3 Joes' Blog

  5. #5
    Join Date
    May 2007
    Location
    Crete, Greece
    Beans
    582

    Re: clipboard in command line

    Thanks, xclip is what I was looking for!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •