Back to Browse

W5_L2: Shell variables - part 1

23.3K views
Feb 3, 2025
40:04

Welcome to Week 5 Lecture 2 of the course "Introduction to the Linux Shell" by Gandham Phanikumar. Full Course: https://study.iitm.ac.in/es/course_pages/CS1102.html Video Overview In this lecture, you will explore the intricacies of shell variables in Bash scripting. The session explains how to create, inspect, modify, and delete variables, helping you understand their behavior and scope in a shell environment. You will learn how to assign values to variables, including capturing command outputs, and explore the process of exporting variables to subshells. The lecture also covers advanced techniques such as using default values, checking for variable existence, and performing string manipulations like slicing and pattern matching. In addition, it introduces the use of arrays—both indexed and associative—for efficient data storage and manipulation in scripts. By the end of this session, you will have a strong understanding of how shell variables enhance the flexibility and power of Bash scripting. About IIT Madras' online Bachelor of Science programme IIT Madras offers four-year BS programmes that aim to provide quality education to all, irrespective of age, educational background, or location. The BS programme has multiple levels, which provide flexibility to students to exit at any of these levels. Depending on the courses completed and credits earned, the learner can receive a Foundation Certificate from IITM CODE (Centre for Outreach and Digital Education), Diploma(s) from IIT Madras, or BSc/BS Degrees from IIT Madras. For more details, Visit: https://www.iitm.ac.in/academics/study-at-iitm/non-campus-bs-programmes #ShellVariables #BashScripting #Linux #Commandline #Scripting #Variables #Arrays #AssociativeArrays #StringManipulation #DefaultValues #ExportVariables #ShellScriptingTutorial #LinuxTutorial #CommandLineTips #IITMadras #LinuxShell #OnlineLearning #Technology #Education

Download

0 formats

No download links available.

W5_L2: Shell variables - part 1 | NatokHD