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/

41 Comments

ProgrammingKnowledge

May 22, 2020

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

Reply

manjyot

May 22, 2020

gotta unblock the ad blocker for this page 😉

Reply

Debasish Kar

May 22, 2020

Very nicely explained the reason of each line with its effect ….

Reply

saikrishna reddy

May 22, 2020

Thank you so much learnt a lot

Reply

Fathima Syed

May 22, 2020

Really appreciate ur effort in explaining here … Great Job !! Thank you so very much 🙂

Reply

Parag Raut

May 22, 2020

Superb , clean and clear way , Thank you 🙂

Reply

Suresh Kumar

May 22, 2020

Excellent learnt shell because of you.Finally completed.credits goes to you man.keep up the good..really appreciate.

Reply

raghunath behera

May 22, 2020

Sar greate thanks for this video from bottom of my hart

Reply

Sunil Kumar Kushawaha

May 22, 2020

Dear sir..
How to open both terminal like your screen at simultaneously….. Please reply me.

Reply

Bour Abdelmadjid

May 22, 2020

-s checks if the file is not empty

Reply

Ksp

May 22, 2020

[ [ $# -eq 0 ]] && usage
why this get executed even when bracket 's condition is true i.e 1 ????

Reply

Ksp

May 22, 2020

awesome content thanks a lot man.

Reply

Joy Sarkar

May 22, 2020

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.

Reply

Osman Qamar

May 22, 2020

Thanks for posting this video!

Reply

DEVA Dev

May 22, 2020

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…

Reply

CHANDRABRATA BISWAS

May 22, 2020

why does he clear the terminal by entering "claer" ?

Reply

Nils Melchert

May 22, 2020

Great Tutorial! Keep it up!

Reply

Sree Parvathy

May 22, 2020

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?

Reply

Anupam Nath

May 22, 2020

Thank you teacher 🙏

Reply

Shah Faisal Islam

May 22, 2020

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.

Reply

CosmicCitiZen

May 22, 2020

One last video before sleep 😂😴

Reply

sana khan

May 22, 2020

bina voice kay kuch samugh nhi aya

Reply

Amir Avraham

May 22, 2020

this is perfect.

Reply

Realthought

May 22, 2020

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 !!

Reply

Simply True

May 22, 2020

Thank you so much sir for this great series, much needed.

Reply

Rafał Kotas

May 22, 2020

Great course, highly recommend it!

Reply

selvamani K

May 22, 2020

Nice

Reply

deepthi somala

May 22, 2020

bash commands in rhel and linux are same

Reply

PrathapBgl

May 22, 2020

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.

Reply

jagajeet tripathy

May 22, 2020

Suppose need to print 1 to 100 except 21 to 30 can you please share the script.

Reply

yağız yalçıntaş

May 22, 2020

Perfect explenation, subbed

Reply

Nikhil

May 22, 2020

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 😀

Reply

Adi Panasa

May 22, 2020

Hi ,
Amazing video , and very helpful thank you.

Reply

Mitesh Agrawal

May 22, 2020

Why read -sp works and not -ps?

Reply

Nithin Vg

May 22, 2020

amazing work … just the best in the web …

Reply

Hari Krishna

May 22, 2020

thank you very much sir……….i never seen this type of stuff for students

Reply

Iulian Alin Sterea

May 22, 2020

Hi, very good tutorial. I learned a lot. Please correct the explanation from 3:27:20 because is not right.

Reply

Vidon _

May 22, 2020

i love you guy <3

Reply

Rupesh Rawat

May 22, 2020

Great

Reply

Jie Huang

May 22, 2020

good tutorial!

Reply

Rakshanda dhawan

May 22, 2020

❤Thanks for making this video❤

Reply

Leave a Reply