Zsh Tutorial #13: String Operations Every Developer Needs. #13
13views
0011:32
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn string manipulation in Zsh! This lesson covers string basics (length, substrings, concatenation), search and replace patterns, case conversion flags, and
splitting/joining strings with arrays.
๐ Source code: https://github.com/GoCelesteAI/zsh_string_manipulation
โฑ๏ธ Timestamps:
0:00 โ Intro
0:25 โ String Basics Explained
0:59 โ String Basics Demo
2:47 โ Search & Replace Explained
3:19 โ Search & Replace Demo
5:07 โ Case Conversion Explained
5:41 โ Case Conversion Demo
7:28 โ Split & Join Explained
8:02 โ Split & Join Demo
10:00 โ Recap
10:32 โ End
๐ Topics covered:
โข String length with $#variable
โข Substrings with 1-based bracket notation
โข String concatenation and contains checks
โข Empty/non-empty tests with -z and -n
โข Replace first ${var/old/new} and all ${var//old/new}
โข Strip prefix with # and ##
โข Strip suffix with % and %%
โข Uppercase ${(U)}, lowercase ${(L)}, capitalize ${(C)}
โข Case-insensitive comparisons
โข Split strings with ${(s:delim:)var}
โข Join arrays with ${(j:delim:)array}
๐ฌ Part of the Zsh Shell Tutorial series โ subscribe for weekly lessons!
#zsh #shellscripting #terminal #linux #macos #programming #tutorial
Tags
zshzsh tutorialzsh string manipulationshell scriptingzsh stringsstring operationssearch and replacecase conversionsplit joinparameter expansionzsh parameter flagsshell tutorialcommand lineterminallinux
Back to tutorials๐ Read the articleOpen in YouTube
Duration
11:32
Published
February 14, 2026
Added to Codegiz
March 15, 2026