From the course: Bash Patterns and Regular Expressions
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Getting started with extended globs - Bash Tutorial
From the course: Bash Patterns and Regular Expressions
Getting started with extended globs
- [Instructor] For this exercise, you'll need Extended globbing turned on. If it is not, you'll need to do this now. I have prepared a directory files for us to play with. Cd into the chapter two directory or the exercise files for this course and then type in pwd. My path is slash home slash user one, slash exercise files, slash chapter two. Your path should be similar. Now let's list as directed by typing an ls. In this directory you should see another directory named golden files. We'll make a copy of this directory to play with. This way we can do destructive operations and just copy the golden files over again, if you want to repeat the exercise. So let's create a copy called test files. Type in cp space dot capital R, lowercase f, space, golden files, space, test files and hit enter. Once this is done, cd into test files, type in cd space, test files. If successful, you should have a directory full of files to mess with. Type in ls and hit enter. These are not real data files…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
What are extended globs?5m 2s
-
(Locked)
Why you should use extended globs4m 37s
-
(Locked)
Make extended globs persistent1m 10s
-
(Locked)
Getting started with extended globs3m 4s
-
(Locked)
Pattern matching with extended globs5m 44s
-
(Locked)
Using extended globs with commands5m 1s
-
(Locked)
Comparing extended globs with regular expressions2m 22s
-
-
-
-
-
-
-
-