Code Monkey home page Code Monkey logo

clp's Introduction

clp

sometimes we need to copy result of some program to clipboard. or we need to copy a text file to clipboard. this simple program will help you on that.

tabebl of content

features

  1. you can pipe any text base result of a program.
  2. you can pass a bunch of file paths to copy their content to clipboard.
  3. you can pass any text
  4. you can run program without any switchs and agrs, this will copy your text from the prompt.

usage

  • to see the help enter clp -h
    DESCRIOTOON
      copy stdin or file content to clipboard.
      in order to copy the resutl of one program to clipboard you should
      pipe the result to clp.
      
      if you do not use switches, the stdin will copy to clipboard
      
    OPTIONS
      -h, --help
        display this help and exit.
      
      -i, --input-file
        read the path file and copy the file content to clipboard.

examples

  1. pipe
    $ ls /var | clp 
  1. from file
    $ clp -i /var/log/syslog
  1. pass texts
    $ clp this text will copy to clipboard as well as other way
    
    # warning: no input was given, consider args as input text
  1. prompt
    $ clp

preview

from input file input

pipe result to clp pipe

type a text and then copy it to clipboard promt

consider args as text to copy arg

installation

install dependencies

  $ pip3 install pyperclip

  # if you dont have the pip3, install it first.

download the program

  $ cd /tmp && wget 'https://raw.githubusercontent.com/shabane/clp/master/clp.py'

add the clp to user programs

  $ cp clp.py ~/.local/bin/clp

add execute permission to clp

    $ chmod +x ~/.local/bin/clp

test the installation

    $ clp -h

license

  • GPL
  • work on my machine

clp's People

Contributors

shabane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.