For more detailed Tutorial visit –
A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. A shell usually interprets a single line of input, but we can also create a file containing a number of lines of commands to be interpreted. This file is a program known as a shell script. The program can also contain control structures (if-then, loops). Shell scripts allow a sequence of commands to be executed automatically . Shell Scripting tutorial is designed to help beginners and professionals.
00:00:00 1 – Introduction
00:10:00 2 – using Variables and Comments
00:20:11 3 – Read User Input
00:31:37 4 – Pass Arguments to a Bash-Script
00:40:08 5 – If Statement ( If then , If then else, If elif else)
00:53:20 6 – File test operators
01:03:45 7 – How to append output to the end of text file
01:14:26 8 – Logical ‘AND’ Operator
01:21:01 9 – Logical ‘OR’ Operator
01:26:35 10 – Perform arithmetic operations
01:33:51 11 – Floating point math operations in bash | bc Command
01:46:06 12 – The case statement
01:53:53 13 – The case statement Example
02:02:26 14 – Array variables
02:12:51 15 – WHILE Loops
02:19:07 16 – using sleep and open terminal with WHILE Loops
02:23:59 17 – Read a file content in Bash
02:31:15 18 – UNTIL loop
02:35:38 19 – FOR loop
02:44:08 20 – use FOR loop to execute commands
02:50:44 21 – Select loop
02:57:41 22 – Break and continue
03:04:11 23 – Functions
03:13:48 24 – Local variables
03:22:09 25 – Function Example
03:34:16 26 – Readonly command
03:41:34 27 – Signals and Traps
04:03:08 28 – How to debug a bash script
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –
★★★ Follow ★★★
My Website –
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Nguồn: https://codeigniterbrasil.com
Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/
Xem thêm Bài Viết:
- Hướng dẫn sử dụng hệ điều hành linux siêu tốc – bài 25 Xem cấu hình hệ thống (cpu, ram, hdd)
- Linux cat command summary with examples
- Cài nhiều hệ điều hành Windows và Linux trên một máy tính
- Hướng dẫn tạo USB Boot DLC2019 (NTFS / UEFI) Trên windows 10 ( sử dụng USB 32 GB )
- Hướng dẫn gỡ bỏ Ubuntu sạch sẽ nhất bằng lệnh trên Windows theo chuẩn UEFI-GPT
For more detailed Tutorial visit – http://www.codebind.com/
00:00:00 1 – Introduction
00:10:00 2 – using Variables and Comments
00:20:11 3 – Read User Input
00:31:37 4 – Pass Arguments to a Bash-Script
00:40:08 5 – If Statement ( If then , If then else, If elif else)
00:53:20 6 – File test operators
01:03:45 7 – How to append output to the end of text file
01:14:26 8 – Logical 'AND' Operator
01:21:01 9 – Logical 'OR' Operator
01:26:35 10 – Perform arithmetic operations
01:33:51 11 – Floating point math operations in bash | bc Command
01:46:06 12 – The case statement
01:53:53 13 – The case statement Example
02:02:26 14 – Array variables
02:12:51 15 – WHILE Loops
02:19:07 16 – using sleep and open terminal with WHILE Loops
02:23:59 17 – Read a file content in Bash
02:31:15 18 – UNTIL loop
02:35:38 19 – FOR loop
02:44:08 20 – use FOR loop to execute commands
02:50:44 21 – Select loop
02:57:41 22 – Break and continue
03:04:11 23 – Functions
03:13:48 24 – Local variables
03:22:09 25 – Function Example
03:34:16 26 – Readonly command
03:41:34 27 – Signals and Traps
04:03:08 28 – How to debug a bash script
gotta unblock the ad blocker for this page 😉
Very nicely explained the reason of each line with its effect ….
Thank you so much learnt a lot
Really appreciate ur effort in explaining here … Great Job !! Thank you so very much 🙂
Superb , clean and clear way , Thank you 🙂
Excellent learnt shell because of you.Finally completed.credits goes to you man.keep up the good..really appreciate.
Sar greate thanks for this video from bottom of my hart
Dear sir..
How to open both terminal like your screen at simultaneously….. Please reply me.
-s checks if the file is not empty
[ [ $# -eq 0 ]] && usage
why this get executed even when bracket 's condition is true i.e 1 ????
awesome content thanks a lot man.
27:30 why does the echo prints in same line. I mean before it printed on a different line, then why does it prints the username with password.
Thanks for posting this video!
Thank you very much very usefull info by u n finally I subscribed and liked:) because of i gained knowledge here…
now onwardds i know shell scripting…
why does he clear the terminal by entering "claer" ?
Great Tutorial! Keep it up!
Thank you for sharing your knowledge.
I practice each and every section in my test machine as you explain. However, I find the comparison operator is not working for me.
Any idea why is it so?
[root@RHEL7encryption scripting]# cat ifelse1.sh
#! /bin/bash
count = 10
if [ $count -eq 10 ]
then
echo "Condition is true"
fi
[root@RHEL7encryption scripting]#
[root@RHEL7encryption scripting]#
[root@RHEL7encryption scripting]# sh ifelse1.sh
ifelse1.sh: line 3: count: command not found
ifelse1.sh: line 4: [: -eq: unary operator expected
[root@RHEL7encryption scripting]#
Am I doing something wrong?
Thank you teacher 🙏
I am extremely grateful to have watched your video.
Next week will be my training on Openwrt, Firmware Development and Lua language, in the end of which my results will secure me a job. For this, I needed to know shell scripting, and due to bashism I was told by the interviewer to learn bash shell scripting.
And today I have finished this video, and will go for the detailed tutorials on getting the job to give my best to it.
One last video before sleep 😂😴
bina voice kay kuch samugh nhi aya
this is perfect.
2:56 cant we add "exit" at the end , so when we make the entry like from " 1 ,2 ,3,4" after it will exit from the promt , instead of doing ctrl+c !!
Thank you so much sir for this great series, much needed.
Great course, highly recommend it!
Nice
bash commands in rhel and linux are same
One of the best tutorials I have found. Very nice work and thanks a lot. It was long time I did the scripting and this tutorial help me refresh everything.
Suppose need to print 1 to 100 except 21 to 30 can you please share the script.
Perfect explenation, subbed
Thanks a lot for making such sharing of valuable knowledge really helpful ,can you pls also make some videos on how to deal .
Can you pls make same video for learning perl also really it will be more helpful 😀
Hi ,
Amazing video , and very helpful thank you.
Why read -sp works and not -ps?
amazing work … just the best in the web …
thank you very much sir……….i never seen this type of stuff for students
Hi, very good tutorial. I learned a lot. Please correct the explanation from 3:27:20 because is not right.
i love you guy <3
Great
good tutorial!
❤Thanks for making this video❤