From the course: Bash Patterns and Regular Expressions

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Getting started with extended globs

Getting started with extended globs - Bash Tutorial

From the course: Bash Patterns and Regular Expressions

Start my 1-month free trial

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…

Contents