Bash variable expansion

  Рет қаралды 12,609

nixcasts

nixcasts

Күн бұрын

In this episode I take a look at bash variables, bash arrays, and special types of bash variable expansion.

Пікірлер: 37
@sunshadow9704
@sunshadow9704 5 ай бұрын
Precise, concise and to the point. One of the best teaching material when it comes to bash features. Thank you man.
@freddyottawa
@freddyottawa 4 жыл бұрын
I know you posted this along time ago but it was really helpful. Thank you!
@adamblack2255
@adamblack2255 6 жыл бұрын
I know this is 3 years old, but thanks man. Really helped.
@ranavnon
@ranavnon 10 жыл бұрын
Excellent video. great explanation. Good pace. 10/10.
@thattis1
@thattis1 4 жыл бұрын
This post requires many more views. It is worth millions of views. I am serious.
@nitsi9333
@nitsi9333 4 жыл бұрын
you CAN capitalize multiple letters at the same time by doing `${test^^[hec]}`
@mohamedaminebenmabrouk
@mohamedaminebenmabrouk 6 жыл бұрын
thank you very much Conner ,I found very useful even after 3 years :)
@TheGuyWithN0Username
@TheGuyWithN0Username 2 жыл бұрын
Very well explained, the previous guide I used confused the hell out of me but now it makes way more sense. Thanks!
@saki7804
@saki7804 3 жыл бұрын
your video is a gold mine of information, thanks
@DominicBartl
@DominicBartl 10 жыл бұрын
Always learning something.
@Sadistically
@Sadistically 7 жыл бұрын
So good. I love this video.
@SaHiLShArMa-ce1bc
@SaHiLShArMa-ce1bc 4 жыл бұрын
This video help me very much thanks 🙏🙏
@Acuzzio
@Acuzzio 10 жыл бұрын
Vim, tmux, bash and haskell. It's CLI heaven... I LOVE your videos. I prefer haskell content, but, fuck, do whatever you want, I will watch you anyway.
@ThePrateekShrivastava
@ThePrateekShrivastava 7 жыл бұрын
Thanks , very helpful
@GunsNFlames
@GunsNFlames 10 жыл бұрын
Awesome!
@blu3_enjoy
@blu3_enjoy 2 жыл бұрын
Very useful teaching
@rolfkaktus9130
@rolfkaktus9130 3 жыл бұрын
Thank you so much! Video is awesome!!
@bsg1147
@bsg1147 3 жыл бұрын
This IFS thing is of course one of the things you should know in advance.
@HhAaXxX
@HhAaXxX 9 жыл бұрын
Thank You !
@devnullskull
@devnullskull 2 жыл бұрын
Thanks for the nice video. Random question, what keyboard are you using that I hear in the background?
@shrirangjoshi6981
@shrirangjoshi6981 2 жыл бұрын
Hey your videos are very informative and fun thanks for making these videos also, can you make a playlist explaining bash syntax because lot of things in bash like arrays requires a lot of syntax which just makes no sense as a beginner !!!
@pwndumb2903
@pwndumb2903 4 жыл бұрын
Hi, thx for video. Could you tell us what color scheme and terminal you used in this video ?
@AlqGo
@AlqGo 5 жыл бұрын
Setting a variable like test= means that the variable actually exists and is null or empty. In other words, it's defined to be empty. Why does this matter? because... param= echo ${param:-not here} # this will echo "not here" only if parameter exists but empty, or parameter does not exist > not here echo ${param-not here} # no colon will echo "not here" only if parameter does not exist > The second one prints an empty string, because it lacks a colon and, so, it prints param (an empty string as defined).
@MaksimKupfer
@MaksimKupfer 5 жыл бұрын
Thanks for this video. I've been referencing this a few times now. This time though, I noticed that echo "${files[1]}" which you show at kzbin.info/www/bejne/r4XMm6unn7-biNE doesn't gives me a blank line in my terminal. Is this just something that has been updated since the video? I'm currently using v.3.2.57
@freddievaldez6587
@freddievaldez6587 4 жыл бұрын
I like your approach. Very nice. I wonder if you can do a tutorial on copying files into directories in which the files have several underscores such as ab_name_rgb_psd01.jpg which would move into a folder named 01_asset_100mm. I have hundreds of these that i do manually...
@freddievaldez6587
@freddievaldez6587 4 жыл бұрын
@@connermcd thanks for replying. I have roughly 10 files that I transfer daily and i would love to copy via bash. Basically tge og4...go into the 01_raster..folders. og4_prdctg01_apr0101nrr_dv01.jpg og4_prdctg01_apr0101nrr_dv02.jpg og4_prdctg01_apr0101nrr_dv03.jpg og4_prdctg01_apr0101nrr_dv04.jpg og4_prdctg01_apr0101nrr_dv05.jpg og4_prdctg01_apr0101nrr_dv06.jpg og4_prdctg01_apr0101nrr_dv07.jpg og4_prdctg01_apr0101nrr_dv08.jpg og4_prdctg01_apr0101nrr_dv09.jpg og4_prdctg01_apr0101nrr_dv10.png 01_raster_rgb_100px 02_raster_rgb_200px 03_raster_rgb_275px 04_raster_rgb_345px 05_raster_rgb_600px 06_raster_rgb_700px 07_raster_rgb_800px 08_raster_rgb_900px 09_raster_rgb_1000px 10_raster_rgb_1600px
@freddievaldez6587
@freddievaldez6587 4 жыл бұрын
@@connermcd each file into each folder. File suffix 01 into folder prefix 01, etc.
@freddievaldez6587
@freddievaldez6587 4 жыл бұрын
@@connermcd thank you so much. I will definately look into it. I assume i can use the tools inherent in the unix utilities installed by defaulf on my mac, like bash, rsync, awk, etc? I am a newbie but I really dig unix and I wish i had more time hacking at it. Thanks for your generosity and for your no-nonsense tutorials. Blessings!
@freddievaldez6587
@freddievaldez6587 4 жыл бұрын
@@connermcd i tred your script and it works beautifully 🙂🙂🙂 you, Sir, are a genius.... I am in awe...thanks again.
@paulgirard3093
@paulgirard3093 6 жыл бұрын
At 7:40 when you say first and last, you're reading from right to left..why ? Great tutorial anyway :)
@mohamedaminebenmabrouk
@mohamedaminebenmabrouk 6 жыл бұрын
I'm lloking for an explanation of this line from /etc/profile in ubuntu 17.10: if [ "${PS1-}" ]; then
@ricebowl___
@ricebowl___ 6 жыл бұрын
echo "twat video was super helpful" | sed 's/wat/his/g'
@nielsdaemen
@nielsdaemen 2 жыл бұрын
Bash is so confusing when your'e used to C based languages!
@bama2619
@bama2619 3 жыл бұрын
I would prefer the name for this video as "bash variable manipulatio", I did not see any expansion. Thank you for the video.
@pewolo
@pewolo 2 жыл бұрын
Everything is actually bash expansion; if you read in the bash official documentation, this is exactly what is in there.
@YannBuydensYB
@YannBuydensYB 8 жыл бұрын
hey make the intro shorter. why 16 seconds of music? just show a title and start talking. Less time wasted.
Vim notetaking tips
17:20
nixcasts
Рет қаралды 177 М.
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 7 МЛН
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 42 МЛН
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 43 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
UNIX shell expansion: proper use and advanced forms
55:07
Sharcnet HPC
Рет қаралды 7 М.
Introduction to Advanced Bash Usage - James Pannacciulli @ OSCON 2014
42:53
James Pannacciulli
Рет қаралды 128 М.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 286 М.
Fuzzy Finding with fzf
16:29
nixcasts
Рет қаралды 23 М.
Regular Expression Basics
36:59
Jason Wertz
Рет қаралды 133 М.
BASH Parameter Expansion
12:31
Protesilaos Stavrou
Рет қаралды 4,7 М.
Bash brace expansion
6:42
nixcasts
Рет қаралды 5 М.
A Beginner's Introduction to BASH Shell Scripting
44:24
Joe Collins
Рет қаралды 287 М.
Нашел еще 70+ нововведений в iOS 18!
11:04
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 23 МЛН
MacBook Air Японский Прикол!
0:42
Sergey Delaisy
Рет қаралды 561 М.