You can potentially use this to help reduce a bunch of if conditions.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/creati...
► https://www.gnu.org/software/bash/man...
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► https://nickjanetakis.com/courses/
THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: / nickjanetakis
► GitHub: https://github.com/nickjj
TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:41 -- Boilerplate for the demo script
1:30 -- Creating a new variable to reference a dynamic name
2:06 -- Getting the value of the dynamic variable name
2:50 -- This could have been solved with an if statement instead
Watch video Creating Dynamic Variables in Bash online without registration, duration hours minute second in high quality. This video was added by user Nick Janetakis 17 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 860 once and liked it 48 people.