Reader small image

You're reading from  Learning Shell Scripting with Zsh

Product typeBook
Published inJan 2014
Publisher
ISBN-139781783282937
Edition1st Edition
Tools
Right arrow
Author (1)
Gaston Festari
Gaston Festari
author image
Gaston Festari

Gastón Festari is a scripting language enthusiast with over five years of experience and a firm believer in free, open source software. Currently working as a developer for Globant, he likes to spread the word about zsh at different meetups and events when away from the keyboard.
Read more about Gaston Festari

Right arrow

Extended Globbing


As you might have noticed at this point, when it comes to Globbing, zsh goes above and beyond the call of duty and then some more. What we'll discuss next is the more advanced aspects of Globbing, commonly referred to as extended Globbing. Put simply, we'll learn a new set of characters and expressions that expand on what we have been using to provide even more functionality to the shell's operations. However, before we ride that horse, pry open that .zshrc file of yours and add the following option:

setopt EXTENDED_GLOB

Or call it from your terminal if you plan on adding it later on. As we'll see in no time, extended Globbing is there to give a special meaning to characters like #, which if you recall, is typically used for comments. Now let's get our hands dirty.

Special patterns

Zsh's vast repertoire also includes a series of shortcuts or special patterns that aim to make mundane tasks a bit more tolerable. We will get familiarized with them in this section.

Recursive searching...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Shell Scripting with Zsh
Published in: Jan 2014Publisher: ISBN-13: 9781783282937

Author (1)

author image
Gaston Festari

Gastón Festari is a scripting language enthusiast with over five years of experience and a firm believer in free, open source software. Currently working as a developer for Globant, he likes to spread the word about zsh at different meetups and events when away from the keyboard.
Read more about Gaston Festari