Welcome to Scripting Standards
In this Section?
Script Naming Convention.
Script File Permissions.
Shell Script Format.
Sequence of Script Execution
What are Variables and How to Create them?
Script Naming Convention
Scripts directory
Script name should identify function.
Script format
Define Shell (#! /bin/bash)
Comments (# comments)
Define Variables (eg name=Imran)
Commands(echo, cp, grep etc)
Statements(if, while, for etc)
#!/bin/bash
# Purpose: Testing script format
# Date: 22/02/2024
# Modification: 22/02/2024
# blank
a='My Name is Shounak Khulape'
echo $a
date
df -h
if { $a -eq file }
then echo this
else
echo that
fi
Script Sequence
command 1
command 2
command 3
eq:-
ls
date
cal
That's great if you have make till here you have covered Shell Scripting Standards.
If you liked what you read, do follow and any feedback for further improvement will be highly appreciated!
Thank you and Happy Learning!👏