Learn Bash Shell Scripting in a Minute using this Collection of Scripts, which are Real World Examples, ranging from a simple Date Based Theme to a Standalone Kiosk Type User Input Forms. The Learning is based on a "Observe and Understand Strategy", which means you run these scripts, observe their outputs, understand the script that generates them and learn the whole thing. These Scripts cover almost all the basics of bash shell scripting and summarizes them in the last script for user convenience. Also see this script : https://sourceforge.net/projects/automated-quiz and this script : https://sourceforge.net/projects/command-output-to-html-table/
Notes:
1. You can use Free Programs like 7-zip to open and extract this tar file to your home folder, if your OS does not have a default application
2. Check Google for further inputs on any command usage or to achieve anything further
3. You may ignore errors caused by date command on your OS, due to difference in syntax
4. Practise
Features
- If you are a Windows User, then you can also download and install cygwin from : https://www.cygwin.com to run Shell Scripts. Note : No need to select anything special on the CYGWIN package selection screen, in its SETUP. Also, after setup is completed, include the Cygwin Binary directory (bin) in the PATH environment variable. Suppose that your Cygwin is installed in the directory "c:\cygwin64". From "Control Panel" ⇒ (Optional) System and Security ⇒ System ⇒ Advanced System Settings ⇒ "Advanced" tab ⇒ Environment Variables ⇒ System Variables ⇒ Select variable named "PATH" ⇒ Edit ⇒ Add "c:\cygwin64\bin;" in front of the existing PATH entry. Note that the semi-colon serves as the directory separator to separate Cygwin from the rest of directory paths. Now start Cygwin Terminal from Desktop and change directory to the zip extracted folder (Refer: https://superuser.com/questions/1286119/how-to-open-desktop-directory-from-cygwin) and execute the Shell script, as shown in my video.
- A custom Puppy Linux Operating System has been created for this purpose of running the script on various client computers. You can download it here : https://sourceforge.net/projects/command-output-to-html-table/files/OS/ Wherever possible, give preference to the 64-bit system over the 32-bit system for better performance and features. You can copy and paste the code easily on the Terminal / Console program on this operating system, by using the keyboard shortcut keys like Ctrl+Insert for copying selected text and Shift+Insert for pasting copied text OR ELSE Middle Click Mouse Button / Wheel For Pasting on Terminal / Console. Press F4 to launch the Terminal from any Folder on the File Manager. This will set your working directory automatically. Use your favorite text editor to edit commands as required and then copy / paste it on the terminal / console and then press the enter key to execute it.
- Please see the VIDEO below for understanding of these scripts
- Also, visit my profile page for other projects : https://sourceforge.net/u/nathan-sr/profile/