Welcome to DBA Master ! This blog is dedicated to all things related to database administration , SQL optimization , and performance tuning . Whether you're a beginner or a seasoned DBA, you'll find practical guides, troubleshooting tips, and real-world tutorials to help you work smarter with data. What to Expect: SQL performance tuning tips Indexing strategies Backup and recovery best practices High availability and replication techniques Database creation, configuration, and setup Monitoring queries and scripts for proactive performance management Migration guides across different database platforms Security essentials and best practices Recommended tools for DBAs Real-world error fixes and how to solve them Stay tuned — exciting content is coming soon. Feel free to bookmark and share: www.dbamaster.com ! Thanks for visiting!
Shell scripting is an important part of process automation in Linux. Scripting helps you write a sequence of commands in a file and then execute them.
Type of Shell:
- Bourne Shell
- C Shell
- Korn Shell
- Bourne-Again Shell (BASH)
How to create shall script file?
Your script file name is File_name.sh
How to execute a shell script file?
- sh filename.sh
- ./filename.sh
- . filename.sh
Shell Script Methods:
Dynamic:
Example:
echo "enter two values:"
read a
read b
c=expr $a + $b
echo "Result is: $c"
Static:
Example:
a=360
b=420
c=expr $a + $b
echo "Result is: $c"
Argument Parsing:
Example:
c=expr $1 + $2
echo "Result is: $c"
echo "Total number of values: $#"
echo "Show values: $*"
echo "show file Name: $0"
Comments
Post a Comment