Giter Site home page Giter Site logo

sector-f / yes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mubaris/yes

0.0 2.0 0.0 88 KB

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

License: MIT License

Shell 69.01% Assembly 1.79% R 1.57% Ada 1.87% AppleScript 1.28% Awk 1.09% Visual Basic 3.57% Batchfile 0.61% Brainfuck 0.98% C 4.53% Clojure 1.67% CoffeeScript 0.39% C++ 2.59% Crystal 0.70% C# 1.13% D 1.22% Dart 1.34% Erlang 0.85% Elixir 0.53% F# 3.29%

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

bgschiller avatar cg-cnu avatar cherneydh avatar dchan3 avatar jan-schreib avatar jaredbriskman avatar jightuse avatar jrgoldfinemiddleton avatar jvitkauskas avatar krazune avatar ladydascalie avatar leonid-rousniak avatar lucaschimweg avatar lukastk avatar mewa avatar mubaris avatar nockc avatar patolar avatar platinumthinker avatar qizd90 avatar quamv avatar skrambol avatar suve avatar thebinaryfox avatar umlaeute avatar volomas avatar wkbraid avatar ybbat avatar zorael avatar zvonimirr avatar

Watchers

 avatar  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.