GithubHelp home page GithubHelp logo

daniele-roncaglioni / bash-buddy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13 KB

Command line utility that lets you quickly look up bash syntax.

C 100.00%
bash-completion command-line-tool bash-tutorial bash-commands

bash-buddy's Introduction

Bash Buddy

bsb helps you remember bash syntax without having to look it up. Just compile bsb.c and put it in you PATH.

Usage

To use bsb, you need to pass a query enclosed in quotes.

bsb "[QUERY]"

The query is matched against a set of predefined queries and the corresponding usage example is printed.

Example

bash-3.2$ bsb "command"
Based on your input we guessed your query is about: pipe command
Use: command1 | command2
    Usage: Sends stdout of one command/process to stdin of 
           Note that not all commands read from stdin or write to stdout!
    Example: 
        cat file.txt | grep "pattern"

Query Options

Do bsb --help to see all options.

Here are the available query options:

  • "variable declaration": how to declare a variable
  • "data types - string integer list": different data types in bash
  • "strings": how to work with strings
  • "arrays": how to work with arrays
  • "string interpolation": how to interpolate a string (also called parameter expansion)
  • "arithmetic expression": how to perform arithmetic operations
  • "sequence": how to create a sequence of numbers
  • "test expression": how to test whether a statement is true or false
  • "command substitution": how to substitute a command for the output of the command
  • "pipe command": how to send the output of one command to the input of the next
  • "redirection": how to redirect the output of a command from and to files or commands
  • "conditional statements": how to perform conditional execution based on a condition
  • "for loop": repeat a block of code multiple times with for
  • "while loop": repeat a block of code multiple times with while
  • "until loop": repeat a block of code multiple times with until
  • "functions": how to define and use functions
  • "exit status": how to check the exit status of a command
  • "trap": how to catch signals

bash-buddy's People

Contributors

daniele-roncaglioni 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.