/bashscripts

bash scripts

Primary LanguageShell

Bash scripts

These are some scripts I wrote in order to learn to use bash. I will update with more as I write them.

##def <word> Prints the definition of a word.

Rohuns-MBP:~ rohun$ def java
Java \Ja"va\ (j[aum]"v[.a]), n.
   1. One of the islands of the Malay Archipelago belonging to
      the Netherlands.
      [1913 Webster]

   2. Java coffee, a kind of coffee brought from Java.
      [1913 Webster]

   3. (Computers) [all capitals] an object-oriented computer
      programming language, derived largely from {C++}, used
      widely for design and display of web pages on the
      world-wide web. It is an interpreted language, and has
      been suggested as a platform-independent code to allow
      execution of the same progam under multiple operating
      systems without recompiling. The language is still (1997)
      under active development, and is evolving.
      [GG + PJC]

   {Java cat} (Zool.), the musang.

   {Java sparrow} (Zool.), a species of finch ({Padda
      oryzivora}), native of Java, but very commonly kept as a
      cage bird; -- called also {ricebird}, and {paddy bird}. In
      the male the upper parts are glaucous gray, the head and
      tail black, the under parts delicate rose, and the cheeks
      white. The bill is large and red. A white variety is also
      kept as a cage bird.
      [1913 Webster]
         
Rohuns-MBP:~ rohun$ def computer\ science
computer science
    n 1: the branch of engineering science that studies (with the
         aid of computers) computable processes and structures [syn:
         {computer science}, {computing}]

##giraffesay <words ...> A giraffe says what you want him to. Unfortunately, it breaks with special characters (except spaces) like quotations so those will needed to be prefaced with a backslash.

Rohuns-MBP:~ rohun$ giraffesay I\'m a giraffe
                               _______________
                             /                 \
                            |   I'm a giraffe   |
                             \_________________/

                  ._ o o       /  
                  \_`-)\|_    /  
               ,""       \   /   
             ,"  ## |   ಠ ಠ.      
           ," ##   ,-\__    `.  
         ,"       /     `--._;)  
       ,"     ## /                
     ,"   ##    /                 
   ,"          /