GithubHelp home page GithubHelp logo

shell-practice's Introduction

Shell Programming Practice

Welcome to my Shell Programming Practice repository! In this repository, I have completed six tasks to improve my shell scripting skills. Below, you'll find a brief overview of each task along with the scripts I created.

Task 1: File Search Script

I created a script that allows users to search for a file within a specified folder. The script takes a folder path and a file name as input and returns the file if found.

bash ./script1/scrip1.sh

Task 2: Deployment Pipeline

I developed a utility script to create three files in a folder then copy files from folder I created to another folder and swap both folder names.

bash ./script2/script2.sh

Task 3: Parse Local IP Address

Using the ifconfig command, I extracted the local IP address (192.168.xxx.xxx) and displayed it using the script.

bash ./script3/script3.sh

Task 4: Modify PS1 Prompt

I modified my PS1 prompt to give it a custom Timestamp look.

bash ./script4/script4.sh

Task 5: Box Printing Script

I created a script that prints a string inside a box. The script takes a string as input and prints it inside a box.

bash ./script5/script5.sh "THIS STRING"

Task 6: Pass Arguments through Flags

I created a script that prints a string inside a box. The script takes a string as input and prints it inside a box.

bash ./script6/script6.sh -s "THIS STRING" -c "+"

shell-practice's People

Watchers

Alia Khizar 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.