Bash variable expansion

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

nixcasts

nixcasts

Күн бұрын

Пікірлер: 37
@sunshadow9704
@sunshadow9704 9 ай бұрын
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!
@ranavnon
@ranavnon 10 жыл бұрын
Excellent video. great explanation. Good pace. 10/10.
@adamblack2255
@adamblack2255 7 жыл бұрын
I know this is 3 years old, but thanks man. Really helped.
@thattis1
@thattis1 4 жыл бұрын
This post requires many more views. It is worth millions of views. I am serious.
@mohamedaminebenmabrouk
@mohamedaminebenmabrouk 6 жыл бұрын
thank you very much Conner ,I found very useful even after 3 years :)
@TheGuyWithN0Username
@TheGuyWithN0Username 3 жыл бұрын
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
@nitsi9333
@nitsi9333 4 жыл бұрын
you CAN capitalize multiple letters at the same time by doing `${test^^[hec]}`
@SaHiLShArMa-ce1bc
@SaHiLShArMa-ce1bc 4 жыл бұрын
This video help me very much thanks 🙏🙏
@DominicBartl
@DominicBartl 10 жыл бұрын
Always learning something.
@blu3_enjoy
@blu3_enjoy 2 жыл бұрын
Very useful teaching
@ThePrateekShrivastava
@ThePrateekShrivastava 8 жыл бұрын
Thanks , very helpful
@bsg1147
@bsg1147 3 жыл бұрын
This IFS thing is of course one of the things you should know in advance.
@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.
@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).
@GunsNFlames
@GunsNFlames 10 жыл бұрын
Awesome!
@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
@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 !!!
@HhAaXxX
@HhAaXxX 10 жыл бұрын
Thank You !
@devnullskull
@devnullskull 3 жыл бұрын
Thanks for the nice video. Random question, what keyboard are you using that I hear in the background?
@pwndumb2903
@pwndumb2903 4 жыл бұрын
Hi, thx for video. Could you tell us what color scheme and terminal you used in this video ?
@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'
@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.
@paulgirard3093
@paulgirard3093 7 жыл бұрын
At 7:40 when you say first and last, you're reading from right to left..why ? Great tutorial anyway :)
@nielsdaemen
@nielsdaemen 2 жыл бұрын
Bash is so confusing when your'e used to C based languages!
@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.
@Sadistically
@Sadistically 8 жыл бұрын
So good. I love this video.
@rolfkaktus9130
@rolfkaktus9130 3 жыл бұрын
Thank you so much! Video is awesome!!
@YannBuydensYB
@YannBuydensYB 8 жыл бұрын
hey make the intro shorter. why 16 seconds of music? just show a title and start talking. Less time wasted.
Xargs Should Be In Your Command Line Toolbag
16:24
DistroTube
Рет қаралды 99 М.
Using BASH Variables and Arguments
12:51
Shawn Powers
Рет қаралды 3,5 М.
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 64 МЛН
Learn How To Use Svelte 5 Snippets
17:41
Joy of Code
Рет қаралды 8 М.
Shell - 5 - Bash Shell Expansions
17:25
Kris Jordan
Рет қаралды 10 М.
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 298 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 79 М.
Fuzzy Finding with fzf
16:29
nixcasts
Рет қаралды 23 М.
Complex File Movement with Bash (Comment Answers)
14:00
nixcasts
Рет қаралды 4,5 М.
BASH Parameter Expansion
12:31
Protesilaos Stavrou
Рет қаралды 4,8 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 809 М.