019 - Shell Scripting #01 | Introduction To Shell Scripting | Working With Arguments And Variables

Опубликовано: 12 Июнь 2021
на канале: CommandLine
3,646
39

Welcome to the first chapter of Linux shell scripting. In this chapter, we will briefly learn about the shell, shell types and basics of shell scripting. We will then use VI, command line based text editor, to write our first shell script and learn how to execute the script. We will also learn how to take arguments as an input and how to display their value using echo command. We will then quickly look into different environment variables and work with user-defined variables as well.

User-defined variables can have a single value but it can also hold multiples values if you define them as an array. We will learn how to define an array, how to define elements in the array, how to call those elements in shell script and how to remove elements from the array if necessary. Finally, we will look into setting up the PATH variable so that we could run our script as if they were commands.

#Linux #ShellScripting #BashScripting


Смотрите видео 019 - Shell Scripting #01 | Introduction To Shell Scripting | Working With Arguments And Variables онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CommandLine 12 Июнь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,646 раз и оно понравилось 39 людям.