Skip to content

athityakumar/shell-scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

SHELL-SCRIPTING

A repository for sample codes of shell-scripting.

REQUIREMENTS

  • Knowledge of vi
  • Linux OS
  • 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 - All Rights Reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages