Welcome to BASHcraft! ๐ your ultimate destination to master the art of BASH scripting! Whether you're a command-line novice or a seasoned shell warrior, โ๏ธ BASHcraft is your gateway to scripting wizardry.๐ง Dive into our structured classes, harness the power of BASH, and automate like a pro. Get ready to level up your Unix-like system skills with us!๐
Ready to embark on your BASH adventure? Let's kick things off! ๐ฅ
-
Clone this repository to your local machine:
git clone https://github.com/hitesh22rana/BASHcraft
-
Navigate to the repository directory:
cd BASHcraft
-
Dive into the first class by checking out the
class01/
directory. ๐
Before we set sail, let's make sure you've got your gear ready:
- Basic knowledge of the Unix/Linux command line. ๐ง
- A text editor (e.g., Vim, Nano, VSCode) installed and ready to roll. โ๏ธ
- A Unix-like environment (Linux, macOS, or Windows with WSL) to flex your BASH muscles. ๐ช
BASH is not just a shell; it's your command-line companion, your automation buddy, and your key to unlocking the full potential of your Unix-like system. ๐ค
Our BASH class is structured to make learning a breeze. Each class is a stepping stone in your BASH journey:
class01/
: Hello World ๐class02/
: BASH Variables ๐ผclass03/
: Math with Bash โโclass04/
: If statements โโ
In each class directory, you'll find documentation and examples to help you grasp the concepts covered. ๐
Introducing our secret weapon: make.sh
! This nifty script is here to streamline your project setup with docstrings.
-
Open your terminal and navigate to the repository root.
-
Execute the following command to wield the power of
make.sh
:./make.sh -f <folder_name> -d "<docstring>"
- Replace
<folder_name>
with your desired directory name. - Replace
<docstring>
with a brief description or docstring for your script (enclose it in double quotes if it's got spaces).
- Replace
-
Boom! ๐งจ The script will conjure your directory and a
script.sh
file within. Your docstring is ready and waiting. -
Customize the
script.sh
to your heart's content for your project.
Example:
./make.sh -f my_project -d "This script will conquer the world!"
This command creates a directory named my_project
with the docstring you provided.
- The script also grants superpowers to
script.sh
by making it executable withchmod +x
. - Feel free to tweak
make.sh
to fit your unique needs, like changing the default file name or permissions.
Enjoy the magic of the automated directory structure generator script! โจ
Join our BASH-tastic community! Contributions are not just welcome; they're celebrated! If you spot issues, have brilliant ideas, or want to add more awesomeness, open an issue or send a pull request. Let's make BASH even more fantastic together!
Happy BASH scripting!๐ฅ