Git Product home page Git Product logo

bashful-shells's Introduction

Bashful Shells ๐Ÿš

Scripts Platform Shell Exercises

A collection of automation scripts, productivity hacks, self-made challenge walkthroughs and solutions to interview exercises related to DevOps, Linux System Administration and Developer Tools.


๐Ÿ™‹โ€โ™‚๏ธ What's Over Here?

  • Plenty of Bashful (understandably blushy) shells waiting to be noticed
  • Solutions to interview problems and exercises
  • A petty attempt to promote the fun of shell scripting ๐Ÿคž
  • Generator scripts (that bootstraps the test environment to solve the corresponding problem)
  • A constant reminder to myself that I don't need to reinvent the wheel everytime I rediscover the same issue

๐Ÿ“Œ Note to self: Remember that ugly script you wrote scratching the head for two hours last week? It's never too late push that over here!


๐Ÿ’ผ Pre-requisite

Regardless of the environment you may have, chances are rare that you have to compile bash from source. A bash shell can be accessed through following means:

  • GNU/Linux based Distros (Preinstalled)
  • Git Bash for Windows (for lifeless maniacs)
  • Online Bash Interpreter

๐ŸŽฎ Shell Scripting Exercise Solutions

devops-exercises contains a comprehensive list of exercises to skill-up in DevOps domain. Here's my take on the shell scripting problems.

Serial Name Problem Description Solution
1 Hello World Exercise Solution
2 Basic date Exercise Solution
3 Great Day Exercise Solution
4 Factors Exercise Solution
5 Argument Check Exercise Solution
6 Files Size Exercise Solution
7 Count Chars Exercise Solution
8 Sum Exercise Solution
9 Number of Arguments Exercise Solution
10 Empty Files Exercise Solution
11 Directories Comparison Exercise Solution
12 It's alive! Exercise Solution

โš’ Usage for Problem Solvers

  • Run the generator.sh script to create a folder hierarchy of all the problems with a ready for you to tackle! Executing the script will:

    1. create a subdirectory for each of the challenges
    2. create a fresh template file script.sh under each of the subdirectories

    โš  Some of my problem directories contain additional init.sh script. Copy that into your corresponding location and run it to generate the test environment for that particular problem

  • As a bonus, you'll find additional scripts in few of my solutions. Those are the bash concepts / topics that I discovered / tried out before implementing them on the corresponding solution.

  • For better understanding, my personal approach to the problems is enclosed in function mysolve(), whereas the intended solution can be found under function actualsolve().


๐ŸŽฎ HackerRank Linux Shell Problems

The Linux Shell module by HackerRank has some interesting text processing problems regarding commands like awk, cut, grep, head, sort, tr, uniq, paste, sed etc.

Serial Name Problem Description Solution
1 Middle of a Text File Exercise Solution
2 Looping and Skipping Exercise Solution
3 Compute the Average Exercise Solution
4 Slice an Array Exercise Solution
5 Filter an Array with Patterns Exercise Solution
6 Display Nth word Exercise Solution
7 Dlt a set of chars Exercise Solution

๐Ÿ™ Acknowledgements

A portion of the scripts are based on the problems from various online sources. The originality and copyright of those problem descriptions and corresponding sample data are created by the respective authors and platform owners.

This collection highlights contents from following modules:

bashful-shells's People

Contributors

bijoy26 avatar

Stargazers

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