Giter Club home page Giter Club logo

shell-helpers's Introduction

= Shell Helpers by Milian Wolff =

Here I present to you some - more or less - nifty little applications
I wrote to make my life on the command line easier.

Some of these I use regularly and can't live without, hope some of
these are useful to you as well!

== License ==

All files are licensed under the GPLv3

shell-helpers's People

Contributors

milianw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shell-helpers's Issues

"clipboard.sh" sometimes adds extra results

Don't add newline to clip board contents and don't print anything when we set the contents.
Note that the case of 'echo "hello" | clipboard' will now not include a trailing newline.
This is still a bit better (imo) compared to before.

Yes, in my opinion, too.

On the other hand, I have detected a bug in the "clipboard.sh" of the 6th of August:

If I execute:
echo a > /tmp/place
cat /tmp/place | clipboard
clipboard
it returns
a
and that's ok.

However, if I execute:
echo b > /tmp/place
clipboard < /tmp/place
clipboard
it returns
b
b
and that's an extra "b".

"clipboard.sh" adds extra carriage returns

If you execute
echo "hello" | clipboard.sh
you see an extra empty line, written in your screen; that is to say:
$ echo "hello" | clipboard.sh

but you should only see
$ echo "hello" | clipboard.sh
without that extra empty line. For example, if you execute
echo "hello" | awk
you see that no extra empty line appears (because awk has caught all that it was feeded).

Also, if you execute
echo "hello" | clipboard.sh
and you "edit/paste" in a text editor, you get there:
hello

with that empty line at the end; this is all right. But if you execute
echo -n "hello" | clipboard.sh
and you "edit/paste" in a text editor, you get there:
hello

with that empty line at the end. That empty line should not exist, because you have used the "-n" argument (*).

(*) Like in
echo -n "hello" >> /tmp/file
echo -n "hello" >> /tmp/file
echo -n "hello" >> /tmp/file
echo -n "hello" >> /tmp/file
cat /tmp/file
hellohellohellohello

Thanks!

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.