Code Monkey home page Code Monkey logo

module-bash's Introduction

Bash

Bash is a very powerful Unix shell and command scripting language.The man page for Bash is a well written and informational document. Additional guides, information, and examples can be found at the Linux Documentation Project. Shellcheck.net provides a web interface (and binary for some distros) that checks shell scripts for errors or common issues and provides information on how to best correct them.

Introduction to bash course

In the course you will revisit some basic concepts of a Unix-like operating system and review the set of Unix core-utils one needs for everyday scripting. Also you will learn the bash shell and its core language features, including

• control statements (if,for,while, . . . )

• file or user input/output

• bash functions

• features simplifying code reuse and script structure

The final exercises will be concerned with the extraction of information (e.g. from files)using so-called regular expressions and programs like awk, sed or grep.

Running the Tests

As there isn't much of a bash ecosystem, there also isn't really a defacto leader in the bash testing area. For these examples we are using bats. You should be able to install it from sources like this:

$ git clone https://github.com/sstephenson/bats.git
$ cd bats
$ ./install.sh $HOME/root

Useful Bash Resources

Shellcheck provides shell script guidelines and help

The Linux Documentation Project Guides

Bash man page

• Also thanks for material for the advanced bash scripting course at Heidelberg University

module-bash's People

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

Watchers

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