https://github.com/athityakumar/shell-scripting
https://github.com/athityakumar/shell-scripting
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/athityakumar/shell-scripting
- Owner: athityakumar
- License: mit
- Created: 2016-07-03T07:39:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-10T08:31:44.000Z (almost 10 years ago)
- Last Synced: 2025-02-21T12:34:59.403Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
SHELL-SCRIPTING
---------------
A repository for sample codes of shell-scripting.
REQUIREMENTS
------------
- [x] Knowledge of vi
- [x] Linux OS
- [x] Interest in coding
- [ ] Infinite amount of coffee (just kidding)
MAKING THE SCRIPTS WORK
-----------------------
(1) In a terminal , type `git clone git@github.com:athityakumar/shell-scripting.git`
(2) Navigate to the scripts folder with `cd shell-scripting/scripts`
(3) Now , type `chmod 755 file-name`
(4) Then , type `./file-name`
(5) Once the favourable output is achieved on running the above command , type `sudo cp file-name ~/../../bin/` to add it as a command to be accessed from the terminal like `file-name arg1 arg2 arg3`
That's it! Happy shell-scripting!
EDITING THE SCRIPTS
-------------------
To change the scripts , type `vi file-name` in terminal.
To insert into file : Press `Esc` , followed by `i` and Tap `Enter`
To save the file : Press `Esc` , followed by `:` , followed by `w` and Tap `Enter`
To quite the file : Press `Esc` , followed by `:` , followed by `q` and Tap `Enter`
WHAT THESE SCRIPTS DO
---------------------
# Script Work done by the script
(1) ak-add-command Adds the shell-scripts as commands by adding them into the bin/ folder. Requires sudo authentification.
(2) ak-demo A hello-world equivalent for shell-scripting. Prints details about the arguments used along with the command.
(3) ak-cd A script that combines cd & ls commands. Should be run as ". ak-cd path"
CONTRIBUTING
------------
The work flow is the same as that of any other repository.
(1) Fork / clone the repository.
(2) Create a new branch , say `my-changes` and make your changes in this branch.
(3) Commit your changes and send a Pull request (PR) to this repository.
Active contributors would be rewarded with the tag of "Collabrators"
Bug fixes , Issues , Issue solutions , Optimizations & Enhancements are always welcome.
LICENSE
-------
The MIT License - [Athitya Kumar](http://github.com/athityakumar) - All Rights Reserved.