Giter Site home page Giter Site logo

aokegbile / yes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mubaris/yes

0.0 2.0 0.0 107 KB

yes - Implementation of simple and dangerous yes command in various languages. :+1:

License: MIT License

Shell 62.64% Assembly 8.66% R 1.69% Ada 1.66% AppleScript 1.13% Awk 1.80% Batchfile 0.54% Brainfuck 0.87% C 5.07% Clojure 1.48% CoffeeScript 0.34% C++ 3.42% Crystal 0.62% C# 1.01% D 1.08% Dart 1.19% Erlang 0.75% Elixir 0.47% Fortran 2.65% F# 2.92%

yes's Introduction

yes

About yes

The yes command is used to output y, or whatever word you choose, forever. ๐Ÿ”

yes

Description

The yes command outputs the same string, STRING, in a constant stream. If STRING is not specified, the word it repeats is y. ๐Ÿ”

yes dates back to a time before Unix commands included the "force" (-f) option, which for many commands is the same as answering "yes" to all prompts.

yes can be used to do something very similar: if the output of yes is piped to a command, it will effectively answer "yes" to any confirmation prompts.

yes Syntax

yes [STRING]...

yes Output

y
y
y
y
y
y
.
.
.

Dangerous yes

Redirecting output to a file

yes can be dangerous also. If you redirect the output stream of yes to a file, it will eat up your storage space. ๐Ÿ’ฃ

$ yes >> yes.txt
^Z

$ du -h yes.txt
1007M yes.txt

I ran the command only for 10 Seconds. And It consumed almost 1 GB. ๐Ÿ’ฅ

Nested yes

yes takes an argument and prints it infinitely. What if you take yes as argument itself. ๐Ÿ’ฃ

$ yes `yes`

You tell me what happens. ๐Ÿ˜œ

yes's People

Contributors

mubaris avatar thebinaryfox avatar ladydascalie avatar theoxo avatar dchan3 avatar jaredbriskman avatar cherneydh avatar zvonimirr avatar jrgoldfinemiddleton avatar jan-schreib avatar platinumthinker avatar anbenson avatar umlaeute avatar stacksharebot avatar nockc avatar mewa avatar lucaschimweg avatar leonid-rousniak avatar jvitkauskas avatar bgschiller avatar jightuse avatar osleg avatar ybbat avatar skrambol avatar suve avatar patolar avatar krazune avatar cg-cnu avatar wkbraid avatar volomas avatar

Watchers

James Cloos avatar Akin Okegbile 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.