ShellMamu, Shell Utility Tool

November 12, 2016

ShellMamu is a small utility/helper tool for shell scripting language. It offers some utility commands which I used frequently in my work. The main purpose of shellMamu is to easily provide the needed parameters for a command.

This document is a brief primer on using shellMamu. Please visit the github page for more details.

Background

I’ve been using small shell/unix commands for various purpose in Mac’s terminal for years. Some time ago I was working on some shell scripts for build automation using Jenkins a year back. I found that for a begginer or intermediate experienced developer, its hard to remember all the needed parameters and its order. Sometimes it kills a lot of time, sometime a wrong command can ruin your entire hours work.

So I decided to write a small utility tool (for myself!) so that the common commands I use can be used more easily. Just you have to type the command in the shellMamu tool and hit enter, and the mamu will ask you politely for all the needed parameters/inputs needed to execute that command. How cool is that? 😎

Installation

Download or clone shellMamu repo, open terminal and go to the downloaded/cloned folder using cd command, then run…

$ sudo sh install
Note that, mamu needs your admin access/password to get copied in the system folder.

Basic Usage

ShellMamu has this available commands:

$ mamu help (Prints help for all available commands)
$ mamu countdown (counts down with voice feedback a certain amount of seconds)
$ mamu findnreplace (finds given text and replaces it with a new one in a file)
$ mamu findtext (finds given text in a file or folder and shows a list of them)
$ mamu symboliclink (make a symbolic link of a file/folder into another folder)
$ mamu httpserver (starts basic python HTTP server in a given port & directory)
$ mamu killnode (kills all running node.js instances or a given one)
$ mamu testtls (tests which TLS versions supported on a given website)

Just write any command, and mamu will ask you for needed parameters, like-

$ mamu countdown
And it’ll ask for how many seconds it will countdown…

::TIPS:: You can also use countdown command like - $ mamu countdown 10  
 How many seconds you want to countdown? ->  4

And then it starts counting down with voice feedback. You can see all the available commands and help by just typing “mamu” in the terminal.


Don’t forget to star the repo if you like it 😊

comments powered by Disqus